Hacker News new | past | comments | ask | show | jobs | submit login
JavaScript Closures in One Sentence
1 point by mrsmee89 on July 6, 2015 | hide | past | favorite
From MDN:

"Closures are functions that refer to independent (free) variables. In other words, the function defined in the closure 'remembers' the environment in which it was created."

Wow!

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: