# Closures in JavaScript | kirupa.com

**URL:** <https://forum.kirupa.com/t/closures-in-javascript-kirupa-com/633673>\
**Category:** programming\
**Created:** [August 27, 2015, 3:42am UTC](https://forum.kirupa.com/t/closures-in-javascript-kirupa-com/633673 "2015-08-27T03:42:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [August 27, 2015, 3:42am UTC](https://forum.kirupa.com/t/closures-in-javascript-kirupa-com/633673/1 "2015-08-27T03:42:39Z")

</div>

by [kirupa](http://www.kirupa.com/me/index.htm) | 30 December 2013

By now, you probably know all about [functions](http://www.kirupa.com/html5/functions_in_javascript.htm) and all the fun functiony things that they do. An important part of working with functions, with JavaScript, and (possibly) life in general is understanding the topic known as **closures**. Closures touch upon a gray area where functions and [variable scope](http://www.kirupa.com/html5/variable_scope_js.htm) intersect:

* * *
This is a companion discussion topic for the original entry at [http://www.kirupa.com/html5//closures\_in\_javascript.htm](http://www.kirupa.com/html5//closures_in_javascript.htm)
