Declare String Variables HELP!

Tell us what’s happening:

Your code so far


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

// Only change code below this line
var firstname = "Travion";
var lastname =  "Washington";

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/declare-string-variables

The challenge asks you to declare 2 variables with specific names, that’s why you are getting an error with your current code, not that it is wrong, just that you are not using the variables name the challenge is asking.

And by the way, when you have a question, you should provide some context.

2 Likes

Instructions:
“ Create two new string variables: myFirstName and myLastName and assign them the values of your first and last name, respectively.” Read this carefully.

Don’t forget the camelToe methode we did learn in the previouse lesson. firstname as we camelToe it it becomes myFirstName

@KittyKora, it’s Camel case, not Camel toe, :rofl:
Your point is valid though, just the wrong name.

2 Likes