String Basics
Working with text strings.
Examples
String Quotes
Both single and double quotes work the same way.
let carName1 = "Volvo XC60"; // Double quotes
let carName2 = 'Volvo XC60'; // Single quotesQuotes Inside String
Using quotes inside a string.
let answer1 = "It's alright";
let answer2 = "He is called 'Johnny'";
let answer3 = 'He is called "Johnny"';Test Your Knowledge
JavaScript Quiz
No quiz available for this topic yet.