Old enough to play. 2


#1

Hello,

Can't find the errors in my code.

var age = prompt("What's your age");
if(age < 13);
{
console.log("If you play it is your owne responsibility")}
else;
{
console.log("rook wat je wilt")}

Thanks for the help.


#2

Check your if, else statement blocks,see if you have maybe something extra after the brackets :relaxed:


#3

:kissing_heart: thanks


#4

I'm on code your own adventure 2. Old enough to play. It keeps saying syntax error.In the little box it says SyntaxError: missing ) after argument list. Here is my code.

// Check if the user is ready to play!
confirm("Are you ready to play!");
var age = prompt("What's your age?");
if(age < 13) {

console.log(You are allowed to play but I take no responsibility for your actions.);

} else {

console.log("You are ready to play!");

}