What are some of the features of ES6?

Some of the new features of ES6 are:

  • Support for constants (also known as "immutable variables")
  • Block-scope support for both variables, constants, functions
  • Arrow functions
  • Extended Parameter Handling
  • Template Literals and Extended Literals
  • Enhanced Regular Expression
  • Destructing Assignment
  • Modules, Classes, Iterators, Generators
  • Enhanced Object Properties
  • Support for Map/Set & WeakMap/WeakSet
  • Promises, Meta-Programming, Internationalization and Localization