Basic JavaScript - Declare String Variables

Tell us what’s happening:
Describe your issue in detail here.
how can i make this a string variable with a character in it?
Your code so far

var myfirstname = "my name";
var mylastname = "my name";

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:

Here is an example of a variable with a character in it

var myVar = “c”;
1 Like

Sometimes if the tests are not passing but you think your code is correct, re-read and make sure you crossed your t’s and dotted your i’s. They can be very picky about things you might not think matter. In this case its being picky about camel casing, which you should always try and do so its easier to read.

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


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