|
69 | 69 | console.log(foo[0], bar[0]); // => 9, 9
|
70 | 70 | ```
|
71 | 71 |
|
72 |
| - **[[⬆]](#TOC)** |
| 72 | +**[⬆ back to top](#table-of-contents)** |
73 | 73 |
|
74 | 74 | ## Objects
|
75 | 75 |
|
|
117 | 117 | type: 'alien'
|
118 | 118 | };
|
119 | 119 | ```
|
120 |
| - **[[⬆]](#TOC)** |
| 120 | + |
| 121 | +**[⬆ back to top](#table-of-contents)** |
121 | 122 |
|
122 | 123 | ## Arrays
|
123 | 124 |
|
|
169 | 170 | }
|
170 | 171 | ```
|
171 | 172 |
|
172 |
| - **[[⬆]](#TOC)** |
| 173 | +**[⬆ back to top](#table-of-contents)** |
173 | 174 |
|
174 | 175 |
|
175 | 176 | ## Strings
|
|
259 | 260 | }
|
260 | 261 | ```
|
261 | 262 |
|
262 |
| - **[[⬆]](#TOC)** |
| 263 | +**[⬆ back to top](#table-of-contents)** |
263 | 264 |
|
264 | 265 |
|
265 | 266 | ## Functions
|
|
317 | 318 | }
|
318 | 319 | ```
|
319 | 320 |
|
320 |
| - **[[⬆]](#TOC)** |
| 321 | +**[⬆ back to top](#table-of-contents)** |
321 | 322 |
|
322 | 323 |
|
323 | 324 |
|
|
353 | 354 | var isJedi = getProp('jedi');
|
354 | 355 | ```
|
355 | 356 |
|
356 |
| - **[[⬆]](#TOC)** |
| 357 | +**[⬆ back to top](#table-of-contents)** |
357 | 358 |
|
358 | 359 |
|
359 | 360 | ## Variables
|
|
462 | 463 | }
|
463 | 464 | ```
|
464 | 465 |
|
465 |
| - **[[⬆]](#TOC)** |
| 466 | +**[⬆ back to top](#table-of-contents)** |
466 | 467 |
|
467 | 468 |
|
468 | 469 | ## Hoisting
|
|
551 | 552 |
|
552 | 553 | - 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/)
|
553 | 554 |
|
554 |
| - **[[⬆]](#TOC)** |
| 555 | +**[⬆ back to top](#table-of-contents)** |
555 | 556 |
|
556 | 557 |
|
557 | 558 |
|
|
600 | 601 |
|
601 | 602 | - For more information see [Truth Equality and JavaScript](http://javascriptweblog.wordpress.com/2011/02/07/truth-equality-and-javascript/#more-2108) by Angus Croll
|
602 | 603 |
|
603 |
| - **[[⬆]](#TOC)** |
| 604 | +**[⬆ back to top](#table-of-contents)** |
604 | 605 |
|
605 | 606 |
|
606 | 607 | ## Blocks
|
|
629 | 630 | }
|
630 | 631 | ```
|
631 | 632 |
|
632 |
| - **[[⬆]](#TOC)** |
| 633 | +**[⬆ back to top](#table-of-contents)** |
633 | 634 |
|
634 | 635 |
|
635 | 636 | ## Comments
|
|
722 | 723 | }
|
723 | 724 | ```
|
724 | 725 |
|
725 |
| - **[[⬆]](#TOC)** |
| 726 | +**[⬆ back to top](#table-of-contents)** |
726 | 727 |
|
727 | 728 |
|
728 | 729 | ## Whitespace
|
|
830 | 831 | .call(tron.led);
|
831 | 832 | ```
|
832 | 833 |
|
833 |
| - **[[⬆]](#TOC)** |
| 834 | +**[⬆ back to top](#table-of-contents)** |
834 | 835 |
|
835 | 836 | ## Commas
|
836 | 837 |
|
|
892 | 893 | ];
|
893 | 894 | ```
|
894 | 895 |
|
895 |
| - **[[⬆]](#TOC)** |
| 896 | +**[⬆ back to top](#table-of-contents)** |
896 | 897 |
|
897 | 898 |
|
898 | 899 | ## Semicolons
|
|
919 | 920 | })();
|
920 | 921 | ```
|
921 | 922 |
|
922 |
| - **[[⬆]](#TOC)** |
| 923 | +**[⬆ back to top](#table-of-contents)** |
923 | 924 |
|
924 | 925 |
|
925 | 926 | ## Type Casting & Coercion
|
|
995 | 996 | var hasAge = !!age;
|
996 | 997 | ```
|
997 | 998 |
|
998 |
| - **[[⬆]](#TOC)** |
| 999 | +**[⬆ back to top](#table-of-contents)** |
999 | 1000 |
|
1000 | 1001 |
|
1001 | 1002 | ## Naming Conventions
|
|
1108 | 1109 | };
|
1109 | 1110 | ```
|
1110 | 1111 |
|
1111 |
| - **[[⬆]](#TOC)** |
| 1112 | +**[⬆ back to top](#table-of-contents)** |
1112 | 1113 |
|
1113 | 1114 |
|
1114 | 1115 | ## Accessors
|
|
1162 | 1163 | };
|
1163 | 1164 | ```
|
1164 | 1165 |
|
1165 |
| - **[[⬆]](#TOC)** |
| 1166 | +**[⬆ back to top](#table-of-contents)** |
1166 | 1167 |
|
1167 | 1168 |
|
1168 | 1169 | ## Constructors
|
|
1247 | 1248 | };
|
1248 | 1249 | ```
|
1249 | 1250 |
|
1250 |
| - **[[⬆]](#TOC)** |
| 1251 | +**[⬆ back to top](#table-of-contents)** |
1251 | 1252 |
|
1252 | 1253 |
|
1253 | 1254 | ## Events
|
|
1278 | 1279 | });
|
1279 | 1280 | ```
|
1280 | 1281 |
|
1281 |
| - **[[⬆]](#TOC)** |
| 1282 | + **[⬆ back to top](#table-of-contents)** |
1282 | 1283 |
|
1283 | 1284 |
|
1284 | 1285 | ## Modules
|
|
1309 | 1310 | }(this);
|
1310 | 1311 | ```
|
1311 | 1312 |
|
1312 |
| - **[[⬆]](#TOC)** |
| 1313 | +**[⬆ back to top](#table-of-contents)** |
1313 | 1314 |
|
1314 | 1315 |
|
1315 | 1316 | ## jQuery
|
|
1371 | 1372 | $sidebar.find('ul').hide();
|
1372 | 1373 | ```
|
1373 | 1374 |
|
1374 |
| - **[[⬆]](#TOC)** |
| 1375 | +**[⬆ back to top](#table-of-contents)** |
1375 | 1376 |
|
1376 | 1377 |
|
1377 | 1378 | ## ECMAScript 5 Compatibility
|
1378 | 1379 |
|
1379 | 1380 | - Refer to [Kangax](https://twitter.com/kangax/)'s ES5 [compatibility table](http://kangax.github.com/es5-compat-table/)
|
1380 | 1381 |
|
1381 |
| - **[[⬆]](#TOC)** |
| 1382 | +**[⬆ back to top](#table-of-contents)** |
1382 | 1383 |
|
1383 | 1384 |
|
1384 | 1385 | ## Testing
|
|
1391 | 1392 | }
|
1392 | 1393 | ```
|
1393 | 1394 |
|
1394 |
| - **[[⬆]](#TOC)** |
| 1395 | +**[⬆ back to top](#table-of-contents)** |
1395 | 1396 |
|
1396 | 1397 |
|
1397 | 1398 | ## Performance
|
|
1405 | 1406 | - [Long String Concatenation](http://jsperf.com/ya-string-concat)
|
1406 | 1407 | - Loading...
|
1407 | 1408 |
|
1408 |
| - **[[⬆]](#TOC)** |
| 1409 | +**[⬆ back to top](#table-of-contents)** |
1409 | 1410 |
|
1410 | 1411 |
|
1411 | 1412 | ## Resources
|
|
1464 | 1465 | - [Dustin Diaz](http://dustindiaz.com/)
|
1465 | 1466 | - [nettuts](http://net.tutsplus.com/?s=javascript)
|
1466 | 1467 |
|
1467 |
| - **[[⬆]](#TOC)** |
| 1468 | +**[⬆ back to top](#table-of-contents)** |
1468 | 1469 |
|
1469 | 1470 | ## In the Wild
|
1470 | 1471 |
|
@@ -1543,6 +1544,6 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
1543 | 1544 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
1544 | 1545 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1545 | 1546 |
|
1546 |
| -**[[⬆]](#TOC)** |
| 1547 | +**[⬆ back to top](#table-of-contents)** |
1547 | 1548 |
|
1548 | 1549 | # };
|
0 commit comments