Learn how to write asynchronous code using promises - it makes your code more efficient and easier to maintain

Find out how to use iterators, iterables, and generators

Explore object-oriented programming and create objects using classes

Build proxies using the ES6 proxy API and understand its uses

Learn how to create JavaScript libraries using ECMAScript 6 modules

About

ECMAScript 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. By learning the latest version of ECMAScript, you'll have a greater understanding of JavaScript and more confidence and fluency when developing with it - follow this book and use and adopt ES6 features into your work, instead of the usual tired JavaScript hacks and tricks.

The book begins by introducing ECMAScript 6's built-in objects and shows you how to create custom Iterators. It also provides you with guidance on Next, how to write asynchronous code in a synchronous style using ES6, so you can unlock greater control and sophistication in the way you develop with JavaScript.

Beyond this, you will also learn 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 ECMAScript modules and demonstrates how modules can increase the performance of websites when used.

Features

Learn a powerful approach to writing object-oriented JavaScript code using the newest version of ECMAScript

Create and use ES6 modules to learn to write smart, modularized JavaScript code

Find out how to use ECMAScript modules - discover how they can boost the performance of your website

Authors

Narayan Prusty

Narayan Prusty is a full-stack developer. He works as a consultant for various start-ups around the world. He has worked on various technologies and programming languages, but is very passionate about JavaScript, WordPress, Ethereum, Solr, React, Cordova, MongoDB, and AWS.

Apart from consulting for various start-ups, he also runs a blog titled QNimate (http://qnimate.com) and a video tutorial site titled QScutter (http://qscutter.com), where he shares information about a lot of the technologies he works on.

FREE with a Subscription

Find out more >

$9.99 a month after trial

Buy

eBook

$19.59

RRP$27.99 Save 30%

Buy

Print + eBook

$34.99

Qty

What do I get with a Packt subscription?

Exclusive monthly discount - no contract

Unlimited access to entire Packt library of over 7000 eBooks and Videos

120 new titles added every month on new and emerging tech

What do I get with a Video?

Download this Video course in MP4 format

DRM FREE - read and interact with your content when you want, where you want, and how you want