[strings] add jsPerf and discussion about long strings with concatenation. Fixes #40

This commit is contained in:
Harrison Shoff
2013-01-11 15:29:31 -08:00
parent e645ca25f9
commit 4815ab0016

View File

@@ -180,6 +180,7 @@
```
- Strings longer than 80 characters should be written across multiple lines using string concatenation.
- Note: If overused, long strings with concatenation could impact performance. [jsPerf](http://jsperf.com/ya-string-concat) & [Discussion](https://github.com/airbnb/javascript/issues/40)
```javascript
// bad
@@ -1289,6 +1290,7 @@
- [Bang Function](http://jsperf.com/bang-function)
- [jQuery Find vs Context, Selector](http://jsperf.com/jquery-find-vs-context-sel/13)
- [innerHTML vs textContent for script text](http://jsperf.com/innerhtml-vs-textcontent-for-script-text)
- [Long String Concatenation](http://jsperf.com/ya-string-concat)
- Loading...
**[[⬆]](#TOC)**