How does this piece of code work?

Tell us what’s happening:
I am clueless what am I doing wrong im doing exactly what they say. If i am doing something wrong i need to be able to group them. How?

Your code so far

var MyFirstName = "Liam";
var MyLastName = "Pohl";
var MyFirstName = MyLastName;

Your browser information:

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

Challenge: Declare String Variables

Link to the challenge:

First, your variable names aren’t quite right. You are capitalizing the first letter when the instructions are asking you to make the first letter lowercase.

Second, you only want two lines of code here. One will set myFirstName to your first name and the other will set myLastName to your last name.

The third line you have there is not needed.


thanks it worked i didnt realize that I had to have the first letter lowercase

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