Skip to content

Commit 559dfab

Browse files
committed
Merge pull request DrkSephy#12 from epidemian/patch-1
Adjust multiline template string example
2 parents b60a4c7 + f6b24d8 commit 559dfab

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
@@ -231,11 +231,9 @@ var text = [
231231
**Template Literals** will preserve new lines for us without having to explicitly place them in:
232232

233233
```javascript
234-
let text = (
235-
`cat
236-
dog
237-
nickelodeon`
238-
)
234+
let text = `cat
235+
dog
236+
nickelodeon`
239237
```
240238

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

0 commit comments

Comments
 (0)