Picture of the author

Javascript

  • Published on
    A closure is a mechanism in JavaScript where an inner function has access to variables in its outer (enclosing) function's scope