We tell JavaScript to create or declare a variable by putting the keyword var in front of it, like so:

Tell us what’s happening:
When I declared variable with keyword VAR as required
exp: var myCar; it did not work
please help! I cannot go forward

Your code so far


var ourName;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0.

Challenge: Declare JavaScript Variables

Link to the challenge:

Use the var keyword to create a variable called myName .

You have the wrong variable name.

1 Like

HI @zizini !

Welcome to the forum!

As mentioned, you are not supposed to create your own variable names.
FCC will tell you what to write. :grinning:

Thank you! I ll keep it in mind for next time.

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