This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check if the user is ready to play! | |
confirm("Are you ready to play!"); | |
var age= prompt("What is your age?"); | |
if (age< 13) | |
{ | |
//do this code// | |
confirm("ask your parent if you can play."); | |
} | |
else | |
//"otherwise"// |