You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-11Lines changed: 5 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,21 +199,15 @@
199
199
var errorMessage = 'This is a super long error that was thrown because ofBatman. When you stop to think about how Batman had anything to dowiththis, you would get nowhere fast.';
200
200
201
201
// bad
202
-
var errorMessage = 'This is a super long error that \
203
-
was thrown because of Batman. \
204
-
When you stop to think about \
205
-
how Batman had anything to do \
202
+
var errorMessage = 'This is a super long error that was thrown because \
203
+
ofBatman. When you stop to think about how Batman had anything to do \
206
204
withthis, you would get nowhere \
207
205
fast.';
208
206
209
-
210
207
// good
211
-
var errorMessage = 'This is a super long error that ' +
212
-
'was thrown because of Batman. ' +
213
-
'When you stop to think about ' +
214
-
'how Batman had anything to do' +
215
-
'withthis, you would get nowhere ' +
216
-
'fast.';
208
+
var errorMessage = 'This is a super long error that was thrown because ' +
209
+
'ofBatman. When you stop to think about how Batman had anything to do' +
210
+
'withthis, you would get nowhere fast.';
217
211
```
218
212
219
213
- When programmatically building up a string, use Array#join instead of string concatenation. Mostly for IE: [jsPerf](http://jsperf.com/string-vs-array-concat/2).
0 commit comments