[JS] 클로저(Closure) 이해하기
자바스크립트에서 사용되는 클로저(closure)를 알아본다
Closures are functions that refer to independent (free) variables (variables that are used locally, but defined in an enclosing scope). In other words, these functions ‘remember’ the environment in which they…