r/javascript • u/kisancodes • May 23 '21
20 JavaScript Concepts you should know as a JavaScript Programmer!
https://blog.devgenius.io/20-javascript-concepts-you-should-know-as-a-javascript-programmer-c04d7b1a8d6e?sk=cc9a655f3a07686a9a1cdd4825c73e18
2
Upvotes
2
u/Ok-okay-imhere May 23 '21
This article is so helpful! Thank you so much. I’m new to JavaScript and this amazing thing to learn
2
5
u/4391021382 May 23 '21 edited May 23 '21
The closure example doesn't show the most powerful thing about closures. You still have access to variables declared in an outer function even after the outer function has returned.
Because of closures there no need for classes