Skip to content

Commit f6b24d8

Browse files
committed
Adjust multiline template string example
Remove indentation from template string so it is equivalent to the other snippets, i.e., `"cat\ndog\nnickelodeon"` instead of `"cat\n dog\n nickelodeon"`.
1 parent 25e4c8b commit f6b24d8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,9 @@ var text = [
232232
**Template Literals** will preserve new lines for us without having to explicitly place them in:
233233

234234
```javascript
235-
let text = (
236-
`cat
237-
dog
238-
nickelodeon`
239-
)
235+
let text = `cat
236+
dog
237+
nickelodeon`
240238
```
241239

242240
**Template Literals** can accept expressions, as well:

0 commit comments

Comments
 (0)