Aren't the use of closures in JavaScript pretty much the same thing as classes?

1 answers


No, they are completely different - closures are a way to encapsulate scope and provide a callback, classes are used as a basic unit of object oriented programming.


More questions

Is heroin addictive?

💬 0 answers

How to register on qane?

💬 0 answers