Understand the more complex sides of JavaScript such as the inheritance model, low-level memory management, multithreaded environments, and web workers

Who This Book Is For

This book is for web developers who have some basic programming knowledge and want to learn to write cleaner code with the power of ECMAScript.

What You Will Learn

Implement methods associated with objects as per the latest ECMAScript specification

Make use of the latest features of ECMAScript

Make use of many new APIs in HTML5 and modern JavaScript implementation

Use SharedArrayBuffers for superfast concurrent and parallel programming

Perform asynchronous programming with JavaScript

Implement the best ways and practices to perform modular programming in JavaScript

In Detail

Learn ECMAScript explores implementation of the latest ECMAScript features to add to your developer toolbox, helping you to progress to an advanced level. Learn to add 1 to a variable andsafely access shared memory data within multiple threads to avoid race conditions.

You'll start the book by building on your existing knowledge of JavaScript, covering performing arithmetic operations, using arrow functions and dealing with closures. Next, you will grasp the most commonly used ECMAScript skills such as reflection, proxies, and classes. Furthermore, you'll learn modularizing the JS code base, implementing JS on the web and how the modern HTML5 + JS APIs provide power to developers on the web. Finally, you will learn the deeper parts of the language, which include making JavaScript multithreaded with dedicated and shared web workers, memory management, shared memory, and atomics. It doesn't end here; this book is 100% compatible with ES.Next.

By the end of this book, you'll have fully mastered all the features of ECMAScript!

Style and approach

The level goes gradually from basic to advanced so that the reader can adapt at every point and level up their skills at the same time. The chapters are carefully arranged in a manner that makes every concept easy to learn and deploy right away in your code.

Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.