What am i doing wrong?


#1

if(age is less then 14)
{
console.log("You Can Play")
}
else
{
console.log("This game is for young childs")
}


#2

This needs to be translated to math :smile:

age <14

PS: the problem is that you otherwise could not distingush it from 4 variables and a value without connection through operators.


#3

Going off what haxor has said, be sure to space out each words so it looks like this: if(age < 14)
Also, console.log() needs semicolons at the end! :smiley: Hope this has helped you! BTW: The parameters could be moved around a little