Learn all the new ES6 features and be amongst the most prominent JavaScript developers who can write efficient JS programs as per the latest standards!
About This BookLearn a powerful approach to writing object-oriented JavaScript code using ES6Create and use ES6 modules to learn to write smart, modularized JavaScript codeThe book will take you step-by-step through a wide array of examples, giving you tips on how to make the best use of the latest ES6 featuresWho This Book Is ForIf you are a JavaScript developer with basic development, and now want to learn about the latest features in order to develop better client-side programs with JavaScript, then this book is for you.
What You Will LearnExplore the usage of new syntaxes introduced by ES6Use the new prototype-based features introduced by ES6Execute ES6 in an old non-supported ES6 environmentWrite asynchronous code using promise to facilitate the writing of better asynchronous code that is easier to read and maintainCreate and understand the usage of iterators, iterables, and generatorsGet to know object-oriented programming and create objects using classesBuild proxies using the ES6 proxy API and understand its usesCreate JavaScript libraries using ES6 modulesIn DetailECMAScript 6 is the new edition to the ECMAScript language, whose specifications are inherited by JavaScript. ES6 gives a vast makeover to JavaScript by adding new syntaxes and APIs to write complex applications and libraries that are easier to debug and maintain. ES6 aims to keep JavaScript accessible for casual developers, even after adding so many new features.
This book will provide step-by-step instructions on how to apply ES6 features instead of old JavaScript hacks and methods.
The book will start by introducing all the built-in objects of ES6 and how to create ES6 custom Iterators. Next, it will teach you how to write asynchronous code in a synchronous style using ES6.
Moving on, the book will teach how to use Reflect API to inspect and manipulate object properties. Next, it teaches how to create proxies, and use it to intercept and customize operations performed on objects.
Finally, it explains old modular programming techniques such as IIFE, CommonJS, AMD, and UMD and also compares it with ES6 modules and how ES6 modules can increase the performance of websites when used.
Style and approachThis book is a pragmatic guide that takes you through the ES6 APIs and other features in a conversational and easy-to-follow style. Each topic is explained with examples and use cases.
ECMAScript 6 is the new JavaScript, and I'm just saying this in case you're wondering why one would read this book.
There are a few niceties in JavaScript 6 that would make lives easier. I read the book looking for those niceties. And it does its job. Poorly.
Thing is, the first examples are good (not great, good), and then it seems there are some components the author didn't really quite grasped -- like proxies -- and threw examples of things without them. In the case of proxies, the author created proxies that replicate the normal behaviour of objects and after reading it, you'll keep wondering why you should use them, as they do nothing different from the default.
Also, broken English. I'll be the first saying that I'm not the most impressive writer in the English language, but hell, some sentences really hurt. "we will be comparing" is one of those cases. And you'll find plenty of them. Plenty of "that is", plenty "therefore" and things like that just make the text tiring to read -- and it's not even a long read, just about 200 pages.
It's a book that may give you some insights about what's new in JavaScript, but falls short delivering its message.
I stopped reading this book after having read half of it. It is clear that you need a good foundation of ECMAScript 5 for fully understanding the explanations. But still the examples given are poor and especially the very poor English in this work made me stop reading it as it was way too painful for me. I would rather recommend some of the excellent online sources available on ECMAScript 6 as this book really doesn't dig deep into the matter and as such is not worth the money.