How does a javascript closure work ?

Posted by e-satis on Stack Overflow See other posts from Stack Overflow or by e-satis
Published on 2008-09-21T14:12:07Z Indexed on 2010/04/20 8:13 UTC
Read the original article Hit count: 260

Filed under:
|

Like the old Albert said : "If you can't explain it to a six-year old, you really don't understand it yourself.”. Well I tried to explain JS closures to a 27 years old friend and completely failed.

Can anybody consider than I am 6 and strangely interested in that subject ?

EDIT : I have seen the scheme example given in SO, and it did not help.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about closures