24. Variables: Help!


#1

I am looking at 24 on the JavaScript lesson but it won't let me declare a variable, always just saying "Oops, did you declare a variable?"

This is the code:

var MyAge=16;
console.log(MyAge);

What am I doing wrong?


#2

Restart your browser. The console doesn't see anything that you typed in "This is usually due to a connection error with the servers" So restarting your browser should fix the problem.


#3

Thanks for the response. I tried this and this time the console showed "16" when I pressed submit but still wouldn't let me continue because "did you attempt to declare a variable?"

Thoughts?


#4

Never mind it just worked! Thanks for your help!


#5

Faça var myAge = 16

console.log(myAge);

Observe que o erro está na letra maiúscula .