Declare strong variables

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

Your code so far

var myfirstname = straight;
var mylastname = straight;

either ways i’ve tried the tutorial method and it still doesn’t work

Your browser information:

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

Challenge: Declare String Variables

Link to the challenge:

myFirstName and myLastName

Capitalization matters to Javascript.

I’m also not sure what straight is. You should be assigning string values. The code you have now should give you a reference error.

ReferenceError: straight is not defined


const someVariableName = "SomeStringValue";

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