Old enough to play - code works but error


#1


https://www.codecademy.com/courses/javascript-beginner-en-x9DnD/0/2?curriculum_id=506324b3a7dffd00020bf661#

Error message: Oops try again: Did you define a variable called age
When I run the code, I get the right answer based on the logic but I still get an error - i've checked other conversations to check for bracket placement, semi-colons, etc and still can't figure out what's wrong.


confirm ("I am ready to play!");
var Age = prompt("What's your age?");
if (Age < 13)
{
    console.log("Ask your parents if you can play first");
}
else
{
    console.log("Yippee - let's get started!");
}


#2

Hi you declare

var Age = ..

instead of

var age = ..

#3

Thanks! that works - is there something I missed about capitalization? I'm now vaguely remembering something about it.


#4

No, you got the error because the lesson want you to declare a variable age