Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- confirm("Are you ready to play?")
- var age = prompt("What's your age?");
- if(age < 13)
- {
- console.log("You are not old enough to play! Continuing to game.")
- }
- else console.log("You are old enough to play.")
- {
- "Time to play!"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement