Advertisement
Guest User

kek ;-;

a guest
May 30th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. confirm("Are you ready to play?")
  2. var age = prompt("What's your age?");
  3.  
  4. if(age < 13)
  5. {
  6. console.log("You are not old enough to play! Continuing to game.")
  7. }
  8. else console.log("You are old enough to play.")
  9. {
  10. "Time to play!"
  11. }
  12. console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")
  13.  
  14. console.log ("Suddenly, Bieber stops and says, 'Who wants to race me?'")
  15.  
  16. var userAnswer = prompt("Do you want to race Bieber on stage?")
  17.  
  18. if(userAnswer = yes) {
  19. console.log ("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
  20. } else { console.log ("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
  21. }
  22. W.I.P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement