/js-closure

A set of basic closure examples in javascript

Primary LanguageJavaScript

Javascript Closure by Example

A set of basic closure examples written in Javascript with accompaning exercises for concepts such as:

  • Understanding Environment Context (Global/Local/Closure context)
  • Lexical Scope
  • Function completion
  • Function inside a function
  • Closure Scope
  • IIFE (Immediately Invoked Function Expression)