Declare two String Variables

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:
https://www.freecodecamp.org/challenges/declare-string-variables

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

Thank you, I saw that and fixed it.

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:

1 Like

Awesome Nabi. I appreciate your effort