I'm stuck :(


#1


2. Code Your Own Adventure

I don't know what i'm doing wrong


// Check if the user is ready to play!
confirm("My body is ready!");
var age = prompt("What's your age");
if (age < 18)
{
    console.log("Your parents better be ok with this!")
}
else (age >= 18)
{
    console.log("IT'S TIME")
}


#2

confirm("I am ready to play");
confirm("Lets go.");

var age = prompt("what is your age");

if (age < 13) {
console.log ("You can play but We take no responsibility");
}
else {
console.log ("Lets play this game");
}

this goes thru for me slight variation but


#3

Hi if you want to know what wrong in your code its because you gave the else statement a condition

if ( condition )  {
  #do Something 
}
else {
  #do somthing 
}

#4

nothing was wrong the only thing was I had to put age 13 instead of 18 :frowning: