r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

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.

1

u/richieahb May 28 '19

I remember really realising I had “got” closures when I realised the similarity between closures and classes, and that you can basically model the latter with the former (albeit less efficiently)