2. are you old enough to play


#1

// Check if the user is ready to play!
confirm'("I understand confirm")
ver age = prompt'("Whats your age");
if (age < 13) {
console.log'("Here put your message");
}else{
console.log'("play!");
}


#2

There was a problem with your syntax.


#3

should be var =)


#4

it still didn't work


#5

There is an extra character on this line. Get rid of '


#6

that didn't work either


#7

Remove the ' here:

confirm'("I understand confirm")

and change ver to var here, and remove ':

ver age = prompt'("Whats your age");

Remove the ' before ( each time here:

if (age < 13) {
console.log'("Here put your message");
}else{
console.log'("play!");
}

So you'll end up with:

// Check if the user is ready to play!
confirm("I understand confirm");
var age = prompt("Whats your age"); 
if (age < 13) {
  console.log("Here put your message");
}
else{
  console.log("play!");
}

Do you understand?


#13

got it thank you person


#14

You're welcome :slight_smile:


#15