Java script algorithms

Tell us what’s happening:
Describe your issue in detail here.
I cant seem to pass this can anyone help

Your code so far


var myFirstname ="parker";
var myLastname ="ruhlen";
"myFirstName"

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14150.87.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.124 Safari/537.36

Challenge: Declare String Variables

Link to the challenge:

The capitalization must match exactly.

What is this?

the problem with your code is that you are creating a litteral string on your case “myFirstName” and not assigning it to nothing. try removing the “” from the third line and everything should work. if you wanted to know the value of the variable myFirstName try to console the value by typing: console.log(myFirstName); on the third line.
hope this helps.

The third line should be deleted (though that is valid [but strange] Javascript and the tests can pass with that line present), but that isn’t the only problem. There are typos in the capitalization of the variables.

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