Appendix E. ES6 for success
This appendix provides a quick introduction to ES6. It describes the 10 best features of the new generation of the most popular programming language—JavaScript:
- Default parameters
- Template literals
- Multiline strings
- Destructuring assignment
- Enhanced object literals
- Arrow functions
- Promises
- Block-scoped constructs: let and const
- Classes
- Modules
Note
This list if highly subjective. It’s in no way intended to diminish the usefulness of other ES6 features that didn’t make it on the list only because I wanted to limit the number to 10.
Default parameters
Remember when we had to use statements like these to define default parameters?
var link = function (height, color, url) { var height ...
Get React Quickly now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.