JS Prompt Box

 
<!DOCTYPE html>
<html>
<head>
  <title>JavaScript</title>
  <script>
    var a = prompt("What is your Name ?");

    document.write(a);
  </script>
</head>
<body>
</body>
</html>