Guest User

Untitled

a guest
Oct 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Guessing Game</title>
  5. </head>
  6. <body>
  7. <h1>Random Questions!</h1>
  8. <h2>Written by Greg Nordeng</h2>
  9. </body>
  10. <script>
  11.  
  12. var catTrick = prompt('What is one trick you taught your cat? Type "to" (then the trick it performs, example "to jump")');
  13. console.log('User tought cat ' + catTrick);
  14. alert('Wow, you actually taught your cat ' + catTrick + '!');
  15.  
  16. var userEmoState = prompt('Cats who are tought ' + catTrick + ', are normally happy cats, what is YOUR emotional state?');
  17. console.log('users emotional state:' + userEmoState);
  18.  
  19. if(userEmoState === 'happy' || userEmoState === "relaxed" || userEmoState === "joyful"){
  20. alert('Glad you are ' + userEmoState +'!');
  21. }else if(userEmoState === "sad" || userEmoState === "mad" || userEmoState === "depressed"){
  22. alert('You might need therapy if you feel ' + userEmoState + '.');
  23. }else{
  24. alert("Have a great day feeling " + userEmoState + '!');
  25. }
  26.  
  27.  
  28. var hollyWoodCrush = prompt('Now that we know you taught your cat ' + catTrick + ' and that you feel ' + userEmoState + ', it\'s important for me to know who your Hollywood crush is, so... Who is it?');
  29. console.log('user\'s crush is ' + hollyWoodCrush);
  30.  
  31. if(hollyWoodCrush === "Mila Kunis") {
  32. alert('Back off!!! That\'s my crush!');
  33. }else{
  34. alert('Hot damn!! ' + hollyWoodCrush + ' is super hot! Good choice.');
  35. }
  36. var winonaRyder = prompt('So I know you are a ' + userEmoState + ' person, who tought their cat ' + catTrick + '; I heard ' + hollyWoodCrush + ' love\'s people who are ' + userEmoState + ' but I have one more very important question. Do you like Winona Ryder?');
  37. console.log('like Winona?:' + winonaRyder);
  38.  
  39. if(winonaRyder === "yes") {
  40. alert("Cool, I was just wondering.");
  41. }else{
  42. alert('Hmph, I have seen Stranger Things.');
  43. }
  44. </script>
  45. </html>
Add Comment
Please, Sign In to add comment