jsguide: Add example - "template string literals" in place of normal string
Open
lang:js
- Dominant language
- HTML
- Stars
- 39.6k
- Forks
- 12.9k
- Avg merge
- 42m
- Merged PRs (30d)
- 15
Description
https://google.github.io/styleguide/jsguide.html#features-strings-no-line-continuations
Do not use line continuations (that is, ending a line inside a string literal with a backslash) in either ordinary or template string literals.
const longString = 'This is a very long string that far exceeds the 80 ' +
'column limit. It does not contain long stretches of spaces since ' +
'the concatenated strings are cleaner.';
- How is it possible to use "template string literals" for the above example?
- Please add example
Contributor guide
Assessment
This issue has not been assessed yet.