\n in strings
This commit is contained in:
parent
3223ab322b
commit
ac91c75710
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ Backticks also allow us to specify a "template function" before the first backti
|
||||||
|
|
||||||
## Special characters
|
## Special characters
|
||||||
|
|
||||||
It is still possible to create multiline strings with single quotes by using a so-called "newline character", written as `\n`, which denotes a line break:
|
It is still possible to create multiline strings with single and double quotes by using a so-called "newline character", written as `\n`, which denotes a line break:
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
let guestList = "Guests:\n * John\n * Pete\n * Mary";
|
let guestList = "Guests:\n * John\n * Pete\n * Mary";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue