Advertisement
Guest User

Javascript

a guest
May 30th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement