Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Guessing Game</title>
- </head>
- <body>
- <h1>Welcome to Code 201!</h1>
- </body>
- <script>
- var user = prompt('what is your name?');
- console.log (user);
- alert('hi there ' + user + ',I\'m going to ask you a question');
- var answer + prompt(user + ',this is a yes/no question. please answer Y or N. Do you love coding');
- var user = prompt('how much code do you know');
- console.log (user);
- answer + prompt (user + ',please answer this question with a number between 1 and 10. what is your knolage of coding');
- var user = prompt (user + ',I/'m going to ask you a question please answer with one word. whats your coding specialty');
- var answer + prompt (user + ',please answer this question with either java/python/ios/none. what is your coding specialty');
- console.log('users answer' + answer);
- }else{
- alert('that sucks I wish you liked code');
- }console.console.log();
- </script>
- </html>
Add Comment
Please, Sign In to add comment