DEV Community

Discussion on: Closure Time!

anevins12 profile image
Andrew Nevins • Edited

What helped me was watching Fun Fun Function:

With the concept that the "this" keyword clashes with the OO and Functional nature of JS.
I.e. If you see an object where "this" appears, then you try calling that in a function, you'll find out that "this" is no longer bound to that object. And one common way to bind it is using the 'bind' function. Another way is to use an IIFE (this is where IIFE really made sense to me). - I hope this makes sense in context to the video.