Closure

binest03459·2022년 4월 11일
0

Javascript

목록 보기
10/16

A closure is the combination of a function and the lexical environment within which that function was declared.

InnerFunc was declared and called within OuterFunc. At this time, innerFunc can access the variable x of outerFunc that includes itself.

profile
Footprints in Coding

0개의 댓글