Closure

단단한어린이·2022년 4월 11일
0

Javascript

목록 보기
10/17
post-custom-banner

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개의 댓글