Declare my name

Tell us what’s happening:
how do i declare myName with the var keyword, ending with a semicolon

Your code so far

var myName = "herbert";

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: Declare JavaScript Variables

Link to the challenge:

declaration of a variable is just saying that the variable exist, like var dogName;

what you have done is giving the variable a value, which is something extra, the tests do not expect it and are failing

1 Like

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