DEV Community

Discussion on: What do you dislike about your favorite language?

Collapse
 
notngan profile image
Ngan B. Nguyen • Edited

Agreed. I think class was added just to satisfy OOP programmers from other languages, and to confuse new learners.

In JS, the OOP concept is prototype-based. The class is actually just built on top of the constructor function.