What am i doing wrong here guys please help

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

Your code so far

var myFirstName
var myFirstName = "myLastName";

Your browser information:

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

Challenge: Declare String Variables

Link to the challenge:

You are not doing what is asked in the question:
Break the problem down

  1. Create two new string variables: myFirstName and myLastName
    At present you have only created one
  2. Assign them the values of your first and last name
    So if your name was John Smith you would assign the first variable to “John” and the second to “Smith”

You need to create two variables, myFirstName and myLastName.

Read the instructions

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