Basic JavaScript - Declare String Variables

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

//var myFirstName = 13244244;
//var myLastName = 6554;

Your browser information:

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

Challenge: Basic JavaScript - Declare String Variables

Link to the challenge:

Take a look at the directions again

"you can also declare a string variable like this:

var myName = "your name";

"your name" is called a string literal. A string literal, or string, is a series of zero or more characters enclosed in single or double quotes."

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

you are not using the quotes to make a string

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