r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

Show parent comments

1

u/fallen_atreus May 28 '19

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.

1

u/[deleted] May 31 '19

Have you read about currying? Get that down and you'll pretty quickly find tons of uses for closure.