What is wrong with this?


#1

// Check if the user is ready to play!
confirm("Are you ready to play");
var age = prompt("whats your age");

if (age>=13)
{
console.log("you can play but ask your parents first");
}
else (age<=13)
{
console.log("Good luck have fun.");
}


#2

Hi the else statement doesn't take any condition

if (condition) {
   #do something
}
else {
   #do something
}

#3

Hello can you help me in my post?
I just recently made one.
Sorry for the weird request but I'm in a hurry