File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 88
88
// bad
89
89
var superman = {
90
90
class: ' superhero' ,
91
- default: { clark: kent },
91
+ default: { clark: ' kent' },
92
92
private: true
93
93
};
94
94
95
95
// good
96
96
var superman = {
97
97
klass: ' superhero' ,
98
- defaults: { clark: kent },
98
+ defaults: { clark: ' kent' },
99
99
hidden: true
100
100
};
101
101
```
133
133
- If you don' t know array length use Array #push.
134
134
135
135
` ` ` javascript
136
- var someStack = [],
136
+ var someStack = [];
137
137
138
138
139
139
// bad
174
174
var name = 'Bob Parr';
175
175
176
176
// bad
177
- var fullName = "Bob" + this.lastName;
177
+ var fullName = "Bob " + this.lastName;
178
178
179
179
// good
180
- var fullName = 'Bob' + this.lastName;
180
+ var fullName = 'Bob ' + this.lastName;
181
181
` ` `
182
182
183
183
- Strings longer than 80 characters should be written across multiple lines using string concatenation .
1183
1183
var previousFancyInput = global.FancyInput;
1184
1184
1185
1185
function FancyInput(options) {
1186
- options || ( options = {}) ;
1186
+ this. options = options || {};
1187
1187
}
1188
1188
1189
1189
FancyInput.noConflict = function noConflict() {
1409
1409
1410
1410
** Blogs**
1411
1411
1412
- - [DailyJS](// dailyjs.com)
1412
+ - [DailyJS](http : // dailyjs.com/ )
1413
1413
- [JavaScript Weekly](http: // javascriptweekly.com/)
1414
1414
- [JavaScript, JavaScript... ](http: // javascriptweblog.wordpress.com/)
1415
1415
- [Bocoup Weblog](http: // weblog.bocoup.com/)
You can’t perform that action at this time.
0 commit comments