Basic JavaScript - Declare String Variables

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

Your code so far
in console the output of declared string is showing as “s is not defined”

var myFirstName;
myFirstName=S;

Your browser information:

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

Challenge: Basic JavaScript - Declare String Variables

Link to the challenge:

Strings are represented using ""

myFirstName="Your First Name";

A string literal, or string, is a series of zero or more characters enclosed in single quotes: 'string ’ or double quotes : “string”. Or template literals (backticks ``).
Good luck :wink:

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