Stuck on 2. Old enough to play?


#1


Hello ! i have troubles finding my error...
thx for the help :slight_smile:


2. Old enough to play?


SyntaxError: Unexpected keyword 'else'


confirm("I am ready to play!") ; // Check if the user is ready to play!
var age = prompt("What's your age") ; 
if ( age < 13 ) ;
{
 console.log("you are majeure") ;
}
else
{
    console.log("too young to play, too yong to fuck, too bad 4 u") ;
}


#2

this line:

if ( age < 13 ) ;

remove the semi-colon, it interrupts the if/else clause from working properly.


#3

It works now thank you ! :smile:


#4