Chapter5. 클로저와 가까워지기
클로저는 함수 선언 시 만들어지는 유효 범위를 뜻한다. var outerValue = 'outerValue';var later; function outerFunction() {var innerValue = 'innerValue'; function innerFunction() {console.log('outerValue', outerValue); // outerValueconsole.log('innerValue', innerValue); // innerValue} later = innerFunction;} outerFunction();console.log('innerValue', innerValue);later(); outerFunction 함수와 innerFunction 함수가 생성되면서 각 함수에 대한..
정리하기/닌자비급
2017. 6. 5. 12:20
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- AndroidContext
- node
- js
- vue
- 함수
- node.js
- Android
- 원하는것이있다면끝까지버텨라
- backbone.js
- common.js
- MarionetteJS
- framework
- eventbus
- angular
- vue.js
- vuex
- mocha.js
- awesome-vue
- git tag
- javascript
- awe-some
- nextTick
- marionetts.js
- 자바스크립트
- Typescript
- 외부모듈
- 뉴욕
- nodejs
- #가상머신
- browserify
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함