Showing error for the following code

Tell us what’s happening:
it is showing following error
You should declare myName with the var keyword, ending with a semicolon

Your code so far
I had declare below var
var myCar = “BMW”;

var myName = "Rafael";

Your browser information:

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

Challenge: Declare JavaScript Variables

Link to the challenge:


Works without equal sign and string.

You just have to declare the variable without assigning any value to it. Here you have assigned the value(string) to your variable, which is not expected in this challenge.