Varable in javascript

Tell us what’s happening:
It is telling me to type var then ourname then ; and I do that and says that is wrong.

Your code so far
var ourname ;

var ourname;

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14150.64.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.104 Safari/537.36

Challenge: Declare JavaScript Variables

Link to the challenge:


Use the var keyword to create a variable called myName .

Your code:

I don’t see a variable called myName in your code.

Sorry I had been doing var myname ;

Right, but even “myname” is not the same as “myName” - JS variable names are case sensitive.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.