Declare two String Variables

Declare two String Variables
0

#1

Tell us what’s happening:

Your code so far

// Example
var firstName = "Alan";
var lastName = "Turing";

// Only change code below this line

var myFirstname = "Thabo";
var myLastname = "Ntuli";

I need help, is there anything wrong? I am trying to declare two string variables:

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

Link to the challenge:


#2

Nothing wrong with the syntax, but check your variables’ spelling/capitalizations.


#3

Thank you, I saw that and fixed it.


#4

JavaScript is sensible case.

You have to code your variable like this : var myFirstName = ‘Thabo’ instead of your var myfirstName = ‘Thabo’ .
In the instructions you can see “myFirstName” and Not “myfirstName.” This is why they said you are wrong even if your synthax is ok :slight_smile:


#5

Awesome Nabi. I appreciate your effort