medium May 15, 2016 Argument: Class In ES6 A “Good” Part
- So making the syntax look better and similar to other OO languages, while still keeping the “prototype” inheritance goodness is a good thing. People can use other ways if they don’t want to use “Class” to create Objects.
Argument : Class In ES6 The New “Bad” Part
- Conceptually, there is No Class in JavaScript: Objects are created without Classes
- Bad For Functional Programming. Favor Composition over Inheritance
- Block Scope
- Prevent Variable Hoisting Outside of Scope
- Prevent Duplicate Variable Declaration