I dont knaow how to make a string

Tell us what’s happening:

Your code so far


var myFirstName;
var myLastName;
myFirstName = Makenzie;
myLastName = Martinez;

Your browser information:

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

Challenge: Declare String Variables

Link to the challenge:

Hi @makenzie!

This is a string

"I am a string" 

I am not a string

Also you can solve this challenge in two lines of code by declaring and assigning the variable in one line instead of two.

//This is the FCC example 
var myName = "your name";

Hope that helps!

1 Like

Hi, @makenzie Welcome to FCC community!
When creating string variables it is necessary to put the string inside single quotation ’ ’ or double quotation " " .
As an example,

var myFirstName = "Makenzie";