특정 함수가 참조하는 변수들이 선언된 렉시컬 스코프(lexical scope)는 계속 유지되는데, 그 함수와 스코프를 묶어서 클로저라고 한다.




참고문헌

https://developer.mozilla.org/ko/docs/Web/JavaScript/Guide/Closures


http://chanlee.github.io/2013/12/10/understand-javascript-closure/

+ Recent posts