Skip to content

Commit a2fd260

Browse files
author
tcme
committed
use double quotes in markup
1 parent 49984d7 commit a2fd260

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*A mostly reasonable approach to JavaScript*
44

55

6-
## <a name='TOC'>Table of Contents</a>
6+
## <a name="TOC">Table of Contents</a>
77

88
1. [Types](#types)
99
1. [Objects](#objects)
@@ -34,7 +34,7 @@
3434
1. [Contributors](#contributors)
3535
1. [License](#license)
3636

37-
## <a name='types'>Types</a>
37+
## <a name="types">Types</a>
3838

3939
- **Primitives**: When you access a primitive type you work directly on its value
4040

@@ -69,7 +69,7 @@
6969

7070
**[[⬆]](#TOC)**
7171

72-
## <a name='objects'>Objects</a>
72+
## <a name="objects">Objects</a>
7373

7474
- Use the literal syntax for object creation.
7575

@@ -100,7 +100,7 @@
100100
```
101101
**[[⬆]](#TOC)**
102102
103-
## <a name='arrays'>Arrays</a>
103+
## <a name="arrays">Arrays</a>
104104
105105
- Use the literal syntax for array creation
106106
@@ -161,7 +161,7 @@
161161
**[[⬆]](#TOC)**
162162

163163

164-
## <a name='strings'>Strings</a>
164+
## <a name="strings">Strings</a>
165165

166166
- Use single quotes `''` for strings
167167

@@ -249,7 +249,7 @@
249249
**[[⬆]](#TOC)**
250250

251251

252-
## <a name='functions'>Functions</a>
252+
## <a name="functions">Functions</a>
253253

254254
- Function expressions:
255255

@@ -306,7 +306,7 @@
306306
307307
308308
309-
## <a name='properties'>Properties</a>
309+
## <a name="properties">Properties</a>
310310
311311
- Use dot notation when accessing properties.
312312
@@ -341,7 +341,7 @@
341341
**[[⬆]](#TOC)**
342342
343343
344-
## <a name='variables'>Variables</a>
344+
## <a name="variables">Variables</a>
345345
346346
- Always use `var` to declare variables. Not doing so will result in global variables. We want to avoid polluting the global namespace. Captain Planet warned us of that.
347347
@@ -449,7 +449,7 @@
449449
**[[⬆]](#TOC)**
450450
451451
452-
## <a name='hoisting'>Hoisting</a>
452+
## <a name="hoisting">Hoisting</a>
453453
454454
- Variable declarations get hoisted to the top of their scope, their assignment does not.
455455
@@ -540,7 +540,7 @@
540540
541541
542542
543-
## <a name='conditionals'>Conditional Expressions & Equality</a>
543+
## <a name="conditionals">Conditional Expressions & Equality</a>
544544
545545
- Use `===` and `!==` over `==` and `!=`.
546546
- Conditional expressions are evaluated using coercion with the `ToBoolean` method and always follow these simple rules:
@@ -588,7 +588,7 @@
588588
**[[⬆]](#TOC)**
589589
590590
591-
## <a name='blocks'>Blocks</a>
591+
## <a name="blocks">Blocks</a>
592592
593593
- Use braces with all multi-line blocks.
594594
@@ -617,7 +617,7 @@
617617
**[[⬆]](#TOC)**
618618
619619
620-
## <a name='comments'>Comments</a>
620+
## <a name="comments">Comments</a>
621621
622622
- Use `/** ... */` for multiline comments. Include a description, specify types and values for all parameters and return values.
623623
@@ -684,7 +684,7 @@
684684
**[[⬆]](#TOC)**
685685

686686

687-
## <a name='whitespace'>Whitespace</a>
687+
## <a name="whitespace">Whitespace</a>
688688

689689
- Use soft tabs set to 2 spaces
690690

@@ -779,7 +779,7 @@
779779
.call(tron.led);
780780
```
781781

782-
## <a name='leading-commas'>Leading Commas</a>
782+
## <a name="leading-commas">Leading Commas</a>
783783

784784
- **Nope.**
785785

@@ -814,7 +814,7 @@
814814
**[[⬆]](#TOC)**
815815

816816

817-
## <a name='semicolons'>Semicolons</a>
817+
## <a name="semicolons">Semicolons</a>
818818

819819
- **Yup.**
820820

@@ -841,7 +841,7 @@
841841
**[[⬆]](#TOC)**
842842

843843

844-
## <a name='type-coercion'>Type Casting & Coercion</a>
844+
## <a name="type-coercion">Type Casting & Coercion</a>
845845

846846
- Perform type coercion at the beginning of the statement.
847847
- Strings:
@@ -913,7 +913,7 @@
913913
**[[⬆]](#TOC)**
914914

915915

916-
## <a name='naming-conventions'>Naming Conventions</a>
916+
## <a name="naming-conventions">Naming Conventions</a>
917917

918918
- Avoid single letter names. Be descriptive with your naming.
919919

@@ -1027,7 +1027,7 @@
10271027
**[[⬆]](#TOC)**
10281028

10291029

1030-
## <a name='accessors'>Accessors</a>
1030+
## <a name="accessors">Accessors</a>
10311031

10321032
- Accessor functions for properties are not required
10331033
- If you do make accessor functions use getVal() and setVal('hello')
@@ -1081,7 +1081,7 @@
10811081
**[[⬆]](#TOC)**
10821082
10831083
1084-
## <a name='constructors'>Constructors</a>
1084+
## <a name="constructors">Constructors</a>
10851085
10861086
- Assign methods to the prototype object, instead of overwriting the prototype with a new object. Overwriting the prototype makes inheritance impossible: by resetting the prototype you'll overwrite the base!
10871087

@@ -1166,7 +1166,7 @@
11661166
**[[⬆]](#TOC)**
11671167
11681168
1169-
## <a name='modules'>Modules</a>
1169+
## <a name="modules">Modules</a>
11701170
11711171
- The module should start with a `!`. This ensures that if a malformed module forgets to include a final semicolon there aren't errors in production when the scripts get concatenated.
11721172
- The file should be named with camelCase, live in a folder with the same name, and match the name of the single export.
@@ -1196,7 +1196,7 @@
11961196
**[[⬆]](#TOC)**
11971197

11981198

1199-
## <a name='jquery'>jQuery</a>
1199+
## <a name="jquery">jQuery</a>
12001200

12011201
- Prefix jQuery object variables with a `$`.
12021202

@@ -1261,14 +1261,14 @@
12611261
**[[⬆]](#TOC)**
12621262

12631263

1264-
## <a name='es5'>ECMAScript 5 Compatability</a>
1264+
## <a name="es5">ECMAScript 5 Compatability</a>
12651265

12661266
- Refer to [Kangax](https://twitter.com/kangax/)'s ES5 [compatibility table](http://kangax.github.com/es5-compat-table/)
12671267

12681268
**[[⬆]](#TOC)**
12691269

12701270

1271-
## <a name='testing'>Testing</a>
1271+
## <a name="testing">Testing</a>
12721272

12731273
- **Yup.**
12741274

@@ -1281,7 +1281,7 @@
12811281
**[[⬆]](#TOC)**
12821282

12831283

1284-
## <a name='performance'>Performance</a>
1284+
## <a name="performance">Performance</a>
12851285

12861286
- [String vs Array Concat](http://jsperf.com/string-vs-array-concat/2)
12871287
- [Try/Catch Cost In a Loop](http://jsperf.com/try-catch-in-loop-cost)
@@ -1293,7 +1293,7 @@
12931293
**[[⬆]](#TOC)**
12941294

12951295

1296-
## <a name='resources'>Resources</a>
1296+
## <a name="resources">Resources</a>
12971297

12981298

12991299
**Read This**
@@ -1337,7 +1337,7 @@
13371337

13381338
**[[⬆]](#TOC)**
13391339

1340-
## <a name='in-the-wild'>In the Wild</a>
1340+
## <a name="in-the-wild">In the Wild</a>
13411341

13421342
This is a list of organizations that are using this style guide. Send us a pull request or open an issue and we'll add you to the list.
13431343
@@ -1347,16 +1347,16 @@
13471347
- **MinnPost**: [MinnPost/javascript](//github.com/MinnPost/javascript)
13481348
- **Shutterfly**: [shutterfly/javascript](//github.com/shutterfly/javascript)
13491349
1350-
## <a name='guide-guide'>The JavaScript Style Guide Guide</a>
1350+
## <a name="guide-guide">The JavaScript Style Guide Guide</a>
13511351
13521352
- [Reference](//github.com/airbnb/javascript/wiki/The-JavaScript-Style-Guide-Guide)
13531353
1354-
## <a name='authors'>Contributors</a>
1354+
## <a name="authors">Contributors</a>
13551355
13561356
- [View Contributors](https://github.com/airbnb/javascript/graphs/contributors)
13571357
13581358
1359-
## <a name='license'>License</a>
1359+
## <a name="license">License</a>
13601360
13611361
(The MIT License)
13621362

0 commit comments

Comments
 (0)