Stuck on Declare String Variables

All I’m supposed to do is name the variable. I’ve done that and I still can’t pass.

myFirstName = “katrina”;

myLastName = “bonanno”;

Your code so far


myFirstName = "katrina";
myLastName = "bonanno";

Your browser information:

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

Challenge: Declare String Variables

Link to the challenge:

1 Like

As in the example:

var myName = "your name";

you should use the var keyword to make it clear that you are declaring a new variable.

2 Likes