
Jacob A. answered 01/30/20
CompTIA IT Operations Qualified; IT & Coding Instructor for all ages.
In Javascript, a closure is automatically created every time you create a function. An example would be if you created variableA and functionB inside of functionA. Nothing above functionA in scope can modify variableA. But functionB is enclosed, or in a closure with variableA and can access it to modify it or use it some other way. Basically, it means that a child function can access its parent's scope.