’string literal within single quotes’
“string literal with double quotes"
var string = "Hello!"
The table below lists other special characters that can be added to a text string with the backslash sign:
Escape Sequence Examples
In order to familiarize yourself with these commands take a look at the following examples oh how \”, \\, \n, \t are used to manipulate output with escape sequences.
“I’m kind of a \”big deal\” around here.”
> I’m kind of a “big deal” around here.
“The file can be found on c:\\Desktop\\Files\\Document.txt”
> The file can be found on c:\Desktop\Files\Document.txt
”This is the \n beginning of the next line.”
> This is the
> beginning of the next line.
“My favorite movies include: \n \t Dark Knight Series \n \t Iron Man”
> My favorite movies include:
> Dark Knight Series
> Iron Man