PurePureMilk

Stage 9 Level 4

Mar 13th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. var age = promptNum("How many years old are you?");
  2. if (age >= 17) {
  3. console.log("You can see an R movie alone");
  4. } else if ((age >= 13)) {
  5. console.log("You can see a PG-13 movie alone");
  6. } else if ((age >= 5)) {
  7. console.log("You can see a PG movie alone");
  8. } else {
  9. console.log("Uh. You're too young for most things.");
  10. }
  11.  
  12. console.log("Thanks for verifying!");
Add Comment
Please, Sign In to add comment