Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>concatenation</title>
- </head>
- <body>
- <h1>Concatenation</h1>
- <script>
- //concatenation
- //ask user for name
- var userName;
- var greeting;
- userName = prompt("What is your name?");
- greeting = "Hi, " + userName + "!!";
- alert(greeting);
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment