Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid String concatenation and long length strings #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kbariotis opened this issue Jan 10, 2017 · 1 comment
Closed

Avoid String concatenation and long length strings #107

kbariotis opened this issue Jan 10, 2017 · 1 comment

Comments

@kbariotis
Copy link
Contributor

kbariotis commented Jan 10, 2017

Use String literals instead:

Bad:

console.log(
  "string text line 1\n"+
  "string text line 2"
);

Good:

console.log(`
string text line 1
string text line 2
`);
@ryanmcdermott
Copy link
Owner

Fixed in #82, thank you so much for reading through this guide with a keen eye!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants