2. Old Enough to Play?


#1

Hello,
can you please help me solve this section?
I'm not sure what I'm doing wrong.
Thank you!

var age = prompt("What's your age");

if (age is less than 13)
{
console.log ("We don't take any responsibility")
}

else {
console.log ("Play on!")
}


#2

im stuck on the same one :frowning:


#3

@textpro33368
You gotta turn your "less than" phrase into an actual sign, or the computer is not gonna read it. Put a less than sign(<) for it. Like so:

if(age < 13) {
console.log("You can play")
}
else {
console.log("Play at own risk")
}

@majestic_panda23 You may this find this information useful, if you are still stuck on the same one.


#4

thank you so much!!!!


#5

Like stated above you need actual comparasion signs! I suggest you re-cap that lesson or write them down, FYI when you need to compare something it read signs only