Help?


#1

Hey everyone!
I am really lost with my program, can i pls have help!

// Check if the user is ready to play!
confirm("Are you ready?!")
var age = prompt("What's your age");
if(age is less than 13)
{
console.log("You are under age, but play at your own risks!")
}
else
{
console.log("Congradulations you are old enough to play!")
}


#2

Hello there, on this line:

Instead of using the words is less than, use this less than operator (<).

if(age < 13)

. Hope this helps


#3

You also forgot ending semicolons.


#4

I need some help too please, I don't know whats wrong with it

// Check if the user is ready to play!
confirm("Are you ready!")
var age = prompt("What's your age")
if(age is less than 13) {
consle.log("You are under age, but play at your own risks!")
} else {
consle.log("Congradulations, you are old enough to play!")
}


#5

Use less than operator ( < ) instead of is less than on your if condition
You misspelled your console.log.

@cadecodes is right, dont forgot your semicolon in the end of your statemet.

example:

console.log("You are under age, but play at your own risks!");


#6

thanks. that really helped


#7

so like this

// Check if the user is ready to play!
confirm("Are you ready!");
var age = prompt("What's your age");
if(age < 13) {
consle.log("You are under age, but play at your own risks!");
} else {
consle.log("Congradulations, you are old enough to play!");
}


#8

Yeah. But you misspelled your console.log


#9

ok, thanks for helping me