Basic JavaScript - Declare JavaScript Variables

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

var myName; javier 

myName; = 8 


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

Challenge: Basic JavaScript - Declare JavaScript Variables

Link to the challenge:

So the directions and the hint say:

Use the var keyword to create a variable called myName.

Hint
Look at the ourName example above if you get stuck.

You can get rid of all of this because its not needed. The only thing you were asked to do is use the var keyword and create the variable myName which you have done on the first line

1 Like

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