DEV Community


Discussion on: What is a "Closure" in JavaScript?

thecodepixi profile image
Emily A. Pixi Author

I'm honestly not sure 🤔 that might get more into specific scope than closure itself. But, for instance, let's say in my "inside outside" example, there was a local scope variable inside of inside, that would be inside the "closure" created by the inside function. But I'm not sure if there's any kind of special term for that in terms of closures.

Forem Open with the Forem app