Declare JavaScript Variable

Hello, I’m doing the 2nd Javascript example and being told to do this:

Use the var keyword to create a variable called myName .

So I did and I still get the error

// running tests

You should declare myName with the var keyword, ending with a semicolon

// tests completed

Your code so far


// Example
var ourName;

// Declare myName below this line
var MyName;

Capitalisation is important
Variables are case sentitive
Check accurately your variable, see that it doesn’t corrisponde exactly to what the challenge want you to write.

Thanks, very important thing to look for

1 Like