Introduction:
"strings"
are anything wrapped in speech marks, whether that be a number, a text.
let a = "Justin"
"string"
let a = Justin
undefined
let a = "3.14"
"string"
let a = 3.14
Number
let a = "true"
"string"
let a = true
Boolean
"strings"
can be enclosed using "", '', or template literals (``).
As template literals offer more flexibility in writing code (things like \n
(escape to new line) or \t
(escape to new tab) are not needed), this is what this website employs.
However, for the record, here are the list of escapes: