Syntax error!


#1

confirm("ARE YOU READY ?");
var age=prompt("what's your name ?"):
if(var age<13)
{console.log("you are allowed to play but I take no responsibility for your action")}
else{console.log("HAVE fun !!!");}

I don't understand.why is the code wrong ? HELP ME !!!


#2

I found my error lol it was so stupid