Notes
A JavaScript string is a collection of characters written inside quotes.
let firstName = "Will";
You can use single or double quotes:
let lastName = 'Smith';
You can use quotes inside a string, as long as they don't match the quotes surrounding the string:
let fullName= "My fullname is 'Will Smith'";
To find the length of a string, use the built-in length
property:
let fullName= "Will Smith";
document.write(fullName.length);
Output: 10
The backslash (\
) escape character turns special characters into string characters:
let text = "We are the so-called \"Vikings\" from the north.";
The sequence \\ inserts a backslash in a string:
let text = "The character \\ is called backslash.";
Video
Video does not exists.