Escape notation
Beside regular, printable characters, special characters can be encoded using escape notation:
Code | Output |
---|
\0 | the NULL character |
\' | single quote |
\" | double quote |
\\ | backslash |
\n | new line |
\r | carriage return |
\v | vertical tab |
\t | tab |
\b | backspace |
\f | form feed |
If you want to change selection, open document below and click on "Move attachment"
String - JavaScript | MDNing Anything to be converted to a string.
Template literals
Starting with ECMAScript 2015, string literals can also be so-called Template literals:
`hello world`
`hello!
world!`
`hello ${who}`
escape `${who}`
Escape notation
Beside regular, printable characters, special characters can be encoded using escape notation:
Code Output \0 the NULL character \' single quote \" double quote \\ backslash \n new line \r carriage return \v vertical tab \t tab \b backspace \f form feed \uXXXX unicode codepoint \u{X} ... \u{XXXXXX} unicode codepoint \xXX the Latin-1 character
Unlike some other languages, JavaScript makes no distinction between single-quoted st Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details