I completely understand closures now and have done a couple of advanced JS courses on the subject. I haven't worked on big scale projects but have done a couple of smaller ones. Not sure how closures would speed up the development time, I can't seem to pass beyond using closures to keep data private in method, or turn code into some sort of module or use it with setTimeOut to properly use the increment variable.
Care to elaborate? I have been really struggling to put this thing in practice.
152
u/[deleted] May 28 '19
Closure is a concept I see lots of beginners struggle with. You can massively speed up dev time once you grasp how it works in JS.