We all love and hate JavaScript. But with the new ECMAScript standards the love seems to be growing and the hate fading away. Slides from session by Damir Širola about new useful JavaScript features from ES2015 standard.
5. Classes
Single standard with simple syntax
(react.createClass, new…)
Easy inheritance
Use this to access instance properties and
methods
6. Promises
JavaScript is single threaded so asynchronous
execution is required
Promises allow us to avoid callback hell
Easier error handling
7. Object destructuring
Binding values to variables using pattern matching
Pattern match based on name
Useful for imports and for function parameters with
default values