Skip to content

Commit 1e22029

Browse files
committed
Merge pull request #232 from ClimbsRocks/patch-2
Added consistent periods before code snippets, fixing Issue #231
2 parents 9812fdc + 233c1db commit 1e22029

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
## Types
4343

44-
- **Primitives**: When you access a primitive type you work directly on its value
44+
- **Primitives**: When you access a primitive type you work directly on its value.
4545

4646
+ `string`
4747
+ `number`
@@ -57,7 +57,7 @@
5757

5858
console.log(foo, bar); // => 1, 9
5959
```
60-
- **Complex**: When you access a complex type you work on a reference to its value
60+
- **Complex**: When you access a complex type you work on a reference to its value.
6161

6262
+ `object`
6363
+ `array`
@@ -86,7 +86,7 @@
8686
var item = {};
8787
```
8888

89-
- Don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/airbnb/javascript/issues/61)
89+
- Don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/airbnb/javascript/issues/61).
9090

9191
```javascript
9292
// bad
@@ -125,7 +125,7 @@
125125

126126
## Arrays
127127

128-
- Use the literal syntax for array creation
128+
- Use the literal syntax for array creation.
129129

130130
```javascript
131131
// bad
@@ -178,7 +178,7 @@
178178
179179
## Strings
180180
181-
- Use single quotes `''` for strings
181+
- Use single quotes `''` for strings.
182182
183183
```javascript
184184
// bad
@@ -195,7 +195,7 @@
195195
```
196196
197197
- Strings longer than 80 characters should be written across multiple lines using string concatenation.
198-
- 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)
198+
- 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).
199199
200200
```javascript
201201
// bad
@@ -557,7 +557,7 @@
557557
}
558558
```
559559
560-
- For more information refer to [JavaScript Scoping & Hoisting](http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-Hoisting) by [Ben Cherry](http://www.adequatelygood.com/)
560+
- For more information refer to [JavaScript Scoping & Hoisting](http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-Hoisting) by [Ben Cherry](http://www.adequatelygood.com/).
561561
562562
**[⬆ back to top](#table-of-contents)**
563563
@@ -606,7 +606,7 @@
606606
}
607607
```
608608
609-
- For more information see [Truth Equality and JavaScript](http://javascriptweblog.wordpress.com/2011/02/07/truth-equality-and-javascript/#more-2108) by Angus Croll
609+
- For more information see [Truth Equality and JavaScript](http://javascriptweblog.wordpress.com/2011/02/07/truth-equality-and-javascript/#more-2108) by Angus Croll.
610610
611611
**[⬆ back to top](#table-of-contents)**
612612
@@ -706,7 +706,7 @@
706706

707707
- Prefixing your comments with `FIXME` or `TODO` helps other developers quickly understand if you're pointing out a problem that needs to be revisited, or if you're suggesting a solution to the problem that needs to be implemented. These are different than regular comments because they are actionable. The actions are `FIXME -- need to figure this out` or `TODO -- need to implement`.
708708

709-
- Use `// FIXME:` to annotate problems
709+
- Use `// FIXME:` to annotate problems.
710710

711711
```javascript
712712
function Calculator() {
@@ -718,7 +718,7 @@
718718
}
719719
```
720720

721-
- Use `// TODO:` to annotate solutions to problems
721+
- Use `// TODO:` to annotate solutions to problems.
722722

723723
```javascript
724724
function Calculator() {
@@ -735,7 +735,7 @@
735735

736736
## Whitespace
737737

738-
- Use soft tabs set to 2 spaces
738+
- Use soft tabs set to 2 spaces.
739739

740740
```javascript
741741
// bad
@@ -1042,7 +1042,7 @@
10421042
}
10431043
```
10441044

1045-
- Use camelCase when naming objects, functions, and instances
1045+
- Use camelCase when naming objects, functions, and instances.
10461046

10471047
```javascript
10481048
// bad
@@ -1061,7 +1061,7 @@
10611061
});
10621062
```
10631063

1064-
- Use PascalCase when naming constructors or classes
1064+
- Use PascalCase when naming constructors or classes.
10651065

10661066
```javascript
10671067
// bad
@@ -1083,7 +1083,7 @@
10831083
});
10841084
```
10851085

1086-
- Use a leading underscore `_` when naming private properties
1086+
- Use a leading underscore `_` when naming private properties.
10871087

10881088
```javascript
10891089
// bad
@@ -1143,8 +1143,8 @@
11431143

11441144
## Accessors
11451145

1146-
- Accessor functions for properties are not required
1147-
- If you do make accessor functions use getVal() and setVal('hello')
1146+
- Accessor functions for properties are not required.
1147+
- If you do make accessor functions use getVal() and setVal('hello').
11481148

11491149
```javascript
11501150
// bad
@@ -1160,7 +1160,7 @@
11601160
dragon.setAge(25);
11611161
```
11621162

1163-
- If the property is a boolean, use isVal() or hasVal()
1163+
- If the property is a boolean, use isVal() or hasVal().
11641164

11651165
```javascript
11661166
// bad
@@ -1406,7 +1406,7 @@
14061406
14071407
## ECMAScript 5 Compatibility
14081408
1409-
- Refer to [Kangax](https://twitter.com/kangax/)'s ES5 [compatibility table](http://kangax.github.com/es5-compat-table/)
1409+
- Refer to [Kangax](https://twitter.com/kangax/)'s ES5 [compatibility table](http://kangax.github.com/es5-compat-table/).
14101410
14111411
**[⬆ back to top](#table-of-contents)**
14121412

0 commit comments

Comments
 (0)