Basic JavaScript declare string variables

Tell us what’s happening:

I can’t see what im doing wrong here, the string does contain atleast one character?

Describe your issue in detail here.

// running tests

myFirstName should be a string with at least one character in it.

**Your code so far**

var myFirstname = "Anna";

var myLastname = "Svensson";



Your browser information:

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

Challenge: Declare String Variables

Link to the challenge:

Take a closer look at the expected capitalization of the variables.

1 Like

already tried it :
var myFirstname = “anna”;

var myLastname = “svensson”;

Get the same error

myFirstname = myFirst_ame ?

I also tried:

//
var myFirstname;

myFirstname = “anna”;

var myLastname;

myLastname = “svensson”;

look up camel case on a searchEngine

and:

myFirstName = “anna”;

myLastName = “svensson”;

There should be no reason why this isn’t a string though?

oh I see haha! solved it now. Thanks ! :slight_smile:

2 Likes

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