
ECMAScript 6 contains a few new features. Addy Osmani gives a nice overview of things that are about to come:
- Modules (which can replace the revealing module pattern we’re familiar with) and Module Loader
- Classes (which merely is some syntactic sugar)
Object.observe()- Default Parameter Values (again syntactic sugar as we already know how to work around this)
- Block Scoping
- Maps and sets
- Proxies (think PHP’s magic functions
__get()and__set()) - WeakMaps
- Several API improvements such as
Object.isandArray.from