Var mYname = "Mike"; not running successfully...newbie

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

Your code so far


var myName = "Mike";

Your browser information:

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

Challenge: Declare JavaScript Variables

Link to the challenge:

There should be only one semicolon (;), at the end of the line.

Also, don’t initialize it with a value. Just declare the variable.

Thank you so much,I have tried everything.Would it be possible to show me how it looks?I have spent about 10 minutes tring to get it lol

I know its kind of asking you to do it for me but I will still learn from it,thanks

They give you an example in the description:

var ourName;

That is what you need to do, just with a different variable name.

What you did was good JS (without the extra semicolon) but wasn’t what was asked. They asked you to declare a variable and you declared and initialized it - you’ll learn about that later.

Does that make sense? See if you can get it from that. If not, check back.

Thanks,so basically I dont need to put in Mike?

1 Like

It worked :slight_smile: on to the next,thanks again

1 Like

Right, putting in the = "Mike" would be giving it an initial value. You will learn that soon.

1 Like