I am stuck, please help


#1

this says there is a syntax error, please help! var age = prompt("What's your age")
if (age is less than 13)
{
console.log( "You can play but we have no responsibility." ) // do this code
}
else //"otherwise"
{
console.log( "Play on!" ) // do this code
}


#2

age = window.prompt("What is your age?");

if (age == 13){
console.log("text");
}else
{
console.log("Play on!");
}

This should work


#3

thank you, but I already figured it out, but thank you.