2006년 11월 9일 목요일

JavaScript Closures for Dummies


Two one sentence summaries:

  • a closure is the local variables for a function - kept alive after the function has returned, or
  • a closure is a stack-frame which is not deallocated when the function returns. (as if a 'stack-frame' were malloc'ed instead of being on the stack!)
출처 : JavaScript Closures for Dummies



댓글 없음:

댓글 쓰기