Basic JavaScript - Declare String Variables

Tell us what’s happening:
Describe your issue in detail here
Hello, thank you for helping me please. In this exercise, here is what has been asked : Create two new string variables: myFirstName and myLastName and assign them the values of your first and last name, respectively.

And here is my answer which is refused : Var myFirstName = “Emmanuel”;

Var myLastName = “Km”;

So i think that there is a problem. Someone can tell me where is the problem please ? Thank you for your help.
Your code so far

Var myFirstName;
Var myLastName;
Var myFirstName = "Emmanuel";
Var myLastName = "km";

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Declare String Variables

Link to the challenge:

Two problems - you double declared your variables, and ‘var’ has a lower case v

Thanks a lot. It works now.

1 Like

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