DEV Community

Discussion on: Everything you should know about Javascript functions

 
danielbokor profile image
Daniel Bokor

I agree with you, using the IIFE has a single execution context thus there is a single closure.

My point was that closure may exist without the need of using an IIFE.

Also, you are right: we both know how to use closure ;)