Declaring string variables

Tell us what’s happening:
Describe your issue in detail here.
I am failing to Declare double strings variables with characters.

Your code so far

var firstName = "Nhlaka! ";
var lastName = "Khumalo! ";

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; ART-L29 Build/HUAWEIART-L29; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 Mobile Safari/537.36

Challenge: Declare String Variables

Link to the challenge:

Read more closely - those aren’t the variable names you were told to use.

1 Like

Her is how I was ask to do it :point_up_2: screen shot above. I can’t seem to find where did i go wrong.

Not the variable name from the instructions. You are missing two letters at the beginning.

Same thing here.

1 Like

Thank you for your attention, if possible can you hint me or an example perhaps. Thank you.

Create two new string variables: myFirstName and myLastName

What are your variables called?


firstname = “Nhlakanipho!”;

lastName = “Khumalo!”;



The exact variable name I am quoting from your code is wrong.


Now I get, now I see thanks a lot.

Got it, Thank you.


Part of being a good developer is reading things very closely and paying attention to tiny details. Most of us had to learn this the hard way at one point or another. Some of us (myself included) had to learn it a few times before it sunk in. :wink:


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