Old enough to play - code works but error



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");
    console.log("Yippee - let's get started!");


Hi you declare

var Age = ..

instead of

var age = ..


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


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