Declare String Variables

Tell us what’s happening:

I need help. I’m confused.

Your code so far

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

// Only change code below this line

Your browser information:

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

Link to the challenge:

This is a lesson in string LITERALS versus string VARIABLES.

A string literal is given a defined value. Such as this example used in the challenge…

Var firstName = “Alan”;

A string variable is assigned a variable. Such as this.

Var myFirstName= firstName;

Notice we are not using quotes around the assignment firstName.