Basic JavaScript - Declare String Variables

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

I don’t know why it doesn’t work. Please help

Your code so far

//
var myFirstname;
myFirstname = "Anna!";
var myLastname;
myLastname = "Dylan!";
myFirstname = myLastname;
//

Your browser information:

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

Challenge: Basic JavaScript - Declare String Variables

Link to the challenge:

Your variables should be myFirstName and myLastName. Not myFirstname and myLastname.

Also you should not be doing this

This is making your first name variable have the value of your last name. This isnt anywhere in the directions and needs to be removed

thank you sooo much for the response. Then I knew now

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