|
84 | 84 | console.log(foo[0], bar[0]); // => 9, 9
|
85 | 85 | ```
|
86 | 86 |
|
87 |
| -**[⬆ back to top](#table-of-contents)** |
| 87 | +**[⬆ back to top](#목차)** |
88 | 88 |
|
89 | 89 | ## 참조(References)
|
90 | 90 |
|
|
140 | 140 | console.log(b); // ReferenceError
|
141 | 141 | ```
|
142 | 142 |
|
143 |
| -**[⬆ back to top](#table-of-contents)** |
| 143 | +**[⬆ back to top](#목차)** |
144 | 144 |
|
145 | 145 | ## 오브젝트(Objects)
|
146 | 146 |
|
|
298 | 298 | };
|
299 | 299 | ```
|
300 | 300 |
|
301 |
| -**[⬆ back to top](#table-of-contents)** |
| 301 | +**[⬆ back to top](#목차)** |
302 | 302 |
|
303 | 303 | ## 배열(Arrays)
|
304 | 304 |
|
|
353 | 353 | const nodes = Array.from(foo);
|
354 | 354 | ```
|
355 | 355 |
|
356 |
| -**[⬆ back to top](#table-of-contents)** |
| 356 | +**[⬆ back to top](#목차)** |
357 | 357 |
|
358 | 358 | ## 구조화대입(Destructuring)
|
359 | 359 |
|
|
431 | 431 | ```
|
432 | 432 |
|
433 | 433 |
|
434 |
| -**[⬆ back to top](#table-of-contents)** |
| 434 | +**[⬆ back to top](#목차)** |
435 | 435 |
|
436 | 436 | ## 문자열(Strings)
|
437 | 437 |
|
|
495 | 495 | - [6.5](#6.5) <a name='6.5'></a> Never use `eval()` on a string, it opens too many vulnerabilities.
|
496 | 496 | - [6.5](#6.5) <a name='6.5'></a> 절대로 `eval()` 을 이용하지 마십시오. 이것은 많은 취약점을 만들기 때문입니다.
|
497 | 497 |
|
498 |
| -**[⬆ back to top](#table-of-contents)** |
| 498 | +**[⬆ back to top](#목차)** |
499 | 499 |
|
500 | 500 |
|
501 | 501 | ## 함수(Functions)
|
|
669 | 669 | var subtract = Function('a', 'b', 'return a - b');
|
670 | 670 | ```
|
671 | 671 |
|
672 |
| -**[⬆ back to top](#table-of-contents)** |
| 672 | +**[⬆ back to top](#목차)** |
673 | 673 |
|
674 | 674 | ## Arrow함수(Arrow Functions)
|
675 | 675 |
|
|
762 | 762 | [1, 2, 3].reduce((y, x) => x + y);
|
763 | 763 | ```
|
764 | 764 |
|
765 |
| -**[⬆ back to top](#table-of-contents)** |
| 765 | +**[⬆ back to top](#목차)** |
766 | 766 |
|
767 | 767 |
|
768 | 768 | ## Classes & Constructors
|
|
881 | 881 | }
|
882 | 882 | ```
|
883 | 883 |
|
884 |
| -**[⬆ back to top](#table-of-contents)** |
| 884 | +**[⬆ back to top](#목차)** |
885 | 885 |
|
886 | 886 |
|
887 | 887 | ## 모듈(Modules)
|
|
940 | 940 | export default es6;
|
941 | 941 | ```
|
942 | 942 |
|
943 |
| -**[⬆ back to top](#table-of-contents)** |
| 943 | +**[⬆ back to top](#목차)** |
944 | 944 |
|
945 | 945 | ## 이터레이터와 제너레이터(Iterators and Generators)
|
946 | 946 |
|
|
979 | 979 |
|
980 | 980 | > 왜? ES5로 잘 transpile 하지 않기 때문입니다.
|
981 | 981 |
|
982 |
| -**[⬆ back to top](#table-of-contents)** |
| 982 | +**[⬆ back to top](#목차)** |
983 | 983 |
|
984 | 984 |
|
985 | 985 | ## 프로퍼티(Properties)
|
|
1016 | 1016 | const isJedi = getProp('jedi');
|
1017 | 1017 | ```
|
1018 | 1018 |
|
1019 |
| -**[⬆ back to top](#table-of-contents)** |
| 1019 | +**[⬆ back to top](#목차)** |
1020 | 1020 |
|
1021 | 1021 |
|
1022 | 1022 | ## 변수(Variables)
|
|
1136 | 1136 | }
|
1137 | 1137 | ```
|
1138 | 1138 |
|
1139 |
| -**[⬆ back to top](#table-of-contents)** |
| 1139 | +**[⬆ back to top](#목차)** |
1140 | 1140 |
|
1141 | 1141 |
|
1142 | 1142 | ## Hoisting
|
|
1246 | 1246 | - 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/).
|
1247 | 1247 | - 더 자세한건 이쪽을 참고해 주십시오. [JavaScript Scoping & Hoisting](http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-Hoisting/) by [Ben Cherry](http://www.adequatelygood.com/).
|
1248 | 1248 |
|
1249 |
| -**[⬆ back to top](#table-of-contents)** |
| 1249 | +**[⬆ back to top](#목차)** |
1250 | 1250 |
|
1251 | 1251 |
|
1252 | 1252 | ## 조건식과 등가식(Comparison Operators & Equality)
|
|
1305 | 1305 | - [15.4](#15.4) <a name='15.4'></a> For more information see [Truth Equality and JavaScript](http://javascriptweblog.wordpress.com/2011/02/07/truth-equality-and-javascript/#more-2108) by Angus Croll.
|
1306 | 1306 | - [15.4](#15.4) <a name='15.4'></a> 더 자세한건 이쪽을 참고해 주십시오. [Truth Equality and JavaScript](http://javascriptweblog.wordpress.com/2011/02/07/truth-equality-and-javascript/#more-2108) by Angus Croll.
|
1307 | 1307 |
|
1308 |
| -**[⬆ back to top](#table-of-contents)** |
| 1308 | +**[⬆ back to top](#목차)** |
1309 | 1309 |
|
1310 | 1310 |
|
1311 | 1311 | ## 블록(Blocks)
|
|
1359 | 1359 | ```
|
1360 | 1360 |
|
1361 | 1361 |
|
1362 |
| -**[⬆ back to top](#table-of-contents)** |
| 1362 | +**[⬆ back to top](#목차)** |
1363 | 1363 |
|
1364 | 1364 |
|
1365 | 1365 | ## 코멘트(Comments)
|
|
1469 | 1469 | }
|
1470 | 1470 | ```
|
1471 | 1471 |
|
1472 |
| -**[⬆ back to top](#table-of-contents)** |
| 1472 | +**[⬆ back to top](#목차)** |
1473 | 1473 |
|
1474 | 1474 |
|
1475 | 1475 | ## 공백(Whitespace)
|
|
1763 | 1763 | const foo = { clark: 'kent' };
|
1764 | 1764 | ```
|
1765 | 1765 |
|
1766 |
| -**[⬆ back to top](#table-of-contents)** |
| 1766 | +**[⬆ back to top](#목차)** |
1767 | 1767 |
|
1768 | 1768 | ## 콤마(Commas)
|
1769 | 1769 |
|
|
1848 | 1848 | ];
|
1849 | 1849 | ```
|
1850 | 1850 |
|
1851 |
| -**[⬆ back to top](#table-of-contents)** |
| 1851 | +**[⬆ back to top](#목차)** |
1852 | 1852 |
|
1853 | 1853 |
|
1854 | 1854 | ## 세미콜론(Semicolons)
|
|
1879 | 1879 |
|
1880 | 1880 | [Read more](http://stackoverflow.com/questions/7365172/semicolon-before-self-invoking-function/7365214%237365214).
|
1881 | 1881 |
|
1882 |
| -**[⬆ back to top](#table-of-contents)** |
| 1882 | +**[⬆ back to top](#목차)** |
1883 | 1883 |
|
1884 | 1884 |
|
1885 | 1885 | ## 형변환과 강제(Type Casting & Coercion)
|
|
1968 | 1968 | const hasAge = !!age;
|
1969 | 1969 | ```
|
1970 | 1970 |
|
1971 |
| -**[⬆ back to top](#table-of-contents)** |
| 1971 | +**[⬆ back to top](#목차)** |
1972 | 1972 |
|
1973 | 1973 |
|
1974 | 1974 | ## 명명규칙(Naming Conventions)
|
|
2111 | 2111 | ```
|
2112 | 2112 |
|
2113 | 2113 |
|
2114 |
| -**[⬆ back to top](#table-of-contents)** |
| 2114 | +**[⬆ back to top](#목차)** |
2115 | 2115 |
|
2116 | 2116 |
|
2117 | 2117 | ## 억세서(Accessors)
|
|
2171 | 2171 | }
|
2172 | 2172 | ```
|
2173 | 2173 |
|
2174 |
| -**[⬆ back to top](#table-of-contents)** |
| 2174 | +**[⬆ back to top](#목차)** |
2175 | 2175 |
|
2176 | 2176 |
|
2177 | 2177 | ## 이벤트(Events)
|
|
2205 | 2205 | });
|
2206 | 2206 | ```
|
2207 | 2207 |
|
2208 |
| - **[⬆ back to top](#table-of-contents)** |
| 2208 | + **[⬆ back to top](#목차)** |
2209 | 2209 |
|
2210 | 2210 |
|
2211 | 2211 | ## jQuery
|
|
2275 | 2275 | $sidebar.find('ul').hide();
|
2276 | 2276 | ```
|
2277 | 2277 |
|
2278 |
| -**[⬆ back to top](#table-of-contents)** |
| 2278 | +**[⬆ back to top](#목차)** |
2279 | 2279 |
|
2280 | 2280 |
|
2281 | 2281 | ## ECMAScript 5 Compatibility
|
2282 | 2282 |
|
2283 | 2283 | - [26.1](#26.1) <a name='26.1'></a> Refer to [Kangax](https://twitter.com/kangax/)'s ES5 [compatibility table](http://kangax.github.io/es5-compat-table/).
|
2284 | 2284 |
|
2285 |
| -**[⬆ back to top](#table-of-contents)** |
| 2285 | +**[⬆ back to top](#목차)** |
2286 | 2286 |
|
2287 | 2287 | ## ECMAScript 6 Styles
|
2288 | 2288 |
|
|
2302 | 2302 | 1. [Iterators and Generators](#iterators-and-generators)
|
2303 | 2303 | 1. [Modules](#modules)
|
2304 | 2304 |
|
2305 |
| -**[⬆ back to top](#table-of-contents)** |
| 2305 | +**[⬆ back to top](#목차)** |
2306 | 2306 |
|
2307 | 2307 | ## Testing
|
2308 | 2308 |
|
|
2322 | 2322 | - 100% test coverage is a good goal to strive for, even if it's not always practical to reach it.
|
2323 | 2323 | - Whenever you fix a bug, _write a regression test_. A bug fixed without a regression test is almost certainly going to break again in the future.
|
2324 | 2324 |
|
2325 |
| -**[⬆ back to top](#table-of-contents)** |
| 2325 | +**[⬆ back to top](#목차)** |
2326 | 2326 |
|
2327 | 2327 |
|
2328 | 2328 | ## Performance
|
|
2336 | 2336 | - [Long String Concatenation](http://jsperf.com/ya-string-concat)
|
2337 | 2337 | - Loading...
|
2338 | 2338 |
|
2339 |
| -**[⬆ back to top](#table-of-contents)** |
| 2339 | +**[⬆ back to top](#목차)** |
2340 | 2340 |
|
2341 | 2341 |
|
2342 | 2342 | ## Resources
|
|
2418 | 2418 | - [JavaScript Jabber](https://devchat.tv/js-jabber/)
|
2419 | 2419 |
|
2420 | 2420 |
|
2421 |
| -**[⬆ back to top](#table-of-contents)** |
| 2421 | +**[⬆ back to top](#목차)** |
2422 | 2422 |
|
2423 | 2423 | ## In the Wild
|
2424 | 2424 |
|
|
2480 | 2480 | - **Zillow**: [zillow/javascript](https://github.com/zillow/javascript)
|
2481 | 2481 | - **ZocDoc**: [ZocDoc/javascript](https://github.com/ZocDoc/javascript)
|
2482 | 2482 |
|
2483 |
| -**[⬆ back to top](#table-of-contents)** |
| 2483 | +**[⬆ back to top](#목차)** |
2484 | 2484 |
|
2485 | 2485 | ## Translation
|
2486 | 2486 |
|
@@ -2540,7 +2540,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
2540 | 2540 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
2541 | 2541 |
|
2542 | 2542 |
|
2543 |
| -**[⬆ back to top](#table-of-contents)** |
| 2543 | +**[⬆ back to top](#목차)** |
2544 | 2544 |
|
2545 | 2545 | ## Amendments
|
2546 | 2546 |
|
|
0 commit comments