Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 937 Bytes

javascript.md

File metadata and controls

18 lines (15 loc) · 937 Bytes

JavaScript

ES6

Is “Class” In ES6 The New “Bad” Part?

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

5 JavaScript “Bad” Parts That Are Fixed In ES6

medium-fcc

  1. Block Scope
  • Prevent Variable Hoisting Outside of Scope
  • Prevent Duplicate Variable Declaration