Object JavaScript – ECMAScript 6 Code Preview
ECMAScript 6 specification and implementation is underway and promises to bring many of the features that you’ve learned about in the posts on Object JavaScript.
This post gives you an idea of what the code looks like in ECMAScript 6. This post doesn’t cover ever feature. But you will learn about how ECMAScript 6 relates to:
- Scope
- Arrow Functions and Lexical this
- Default Function Parameters
- Classes
- Inheritance
- Modules
- for-of
- Arrow functions
- Promises
I won’t come close to covering all the features. But you can get an idea of how ECMAScript 6 works to support the idea of Object JavaScript. Look to the references and to the specification for information about: Parameter handling, multiple return values, collections, destructuring, rest parameters & spread operator, iterators, array comprehension, and more.
Special thanks to Axel Rauschmayer for many of the snippets.
Continue reading “Object JavaScript – ECMAScript 6 Code Preview”