New to coding string should contain one character

Tell us what’s happening:
I’m new to coding javascript and I’m trying to create a string but I cant see what’s wrong with it.

Your code so far
var myFirstame = “edward”;

var myLastname = “barfield”;

var myFirstName = "edward";

Your browser information:

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

Challenge: Declare String Variables

Link to the challenge:

So what do you have in the var myFirstName? And what is var myFirstame?

I dont quite understand what you mean? I’m trying to follow it but I dont get why its saying there’s no characters when I’ve typed it as it told me to

If you could show me an example of what I should type that would be really helpful

The tests are very precise, looking for a very specific variable name. myLastname and myLastName are not the same thing - note the capitals in particular.

And myFirstame is not the same as myFirstName - the first is missing a letter.

Again, the tests are looking for exact matches. Which test is failing for you?

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