Advertisement
rony2605

If e else com variavel

Feb 28th, 2013
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Check if the user is ready to play!
  2. var age = prompt("What's your age?");
  3. if (age > 18){
  4.     confirm("Voc esta pronto pra jogar: ");
  5. }
  6. else
  7. {
  8.     console.log("Voc nao esta pronto pra jogar: ");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement