How is this not working?


#1

confirm("Ready for action?");
var age = prompt("What's your age");

if( age < 13 )
{
console.log("You can play but I take no responsibility");
}
else
{
console.log("Play on!");
}


#2

try taking out the "var" in var age=prompt("What's your age") because I don't do it and It works for me


#3

and by I don't do it I mean I don't type in var


#4

I'm still getting an "unspecified error"... :frowning:


#5

ok well try taking out the semicolon which is ;


#6

nevermind about the semicolon with your if statement put a space between if and ( age < 13 )


#7

Still nothing. I think there might be something wrong with my web or something I've tried so many options and have read over and over again about if / else commands


#8

hmm well I don't know what to do sorry :pensive: again really sorry


#9

It could be the browser you use. I found that Codecademy works best with Chrome.


#10

The problem is with the crappy programming of Codecademy. The site just sucks and doesn't work. Whoever wrote this needs to learn how to program instead of trying to teach it