I am stuck what do I do?


I have
// Check if the user is ready to play!
confirm("Is the User ready to play?")
var age = prompt("What's your age");

if(age is less than 13) {
console.log("You may play but must not blame me for anything!")
else(If you are 14 or older) {
console.log("You can play on and ignore this message.")
but it says unexpected identifier What should I do?


if(age is less than 13) {

the console is looking for the "less than" sign. " < " try replacing "is less than" with that sign.

else(If you are 14 or older) { //Also, "else" statements don't have parameters.

it should just be:

else{ ... }


For some reason people keep making this mistake, I guess it's understandable though.
Maybe someone should make a topic about it?


I think the contractor needs to change their explanation. This is a lesson for new programmers, and it's best if the lessons reflected that much. Most of the lessons are straight forward and if the lesson becomes broad like so then this will happen.