Learning ECMAScript 6

Rethink the way you develop with JavaScript by learning the ECMA standardized scripting language that lies at its foundations – ECMAScript 6!

Learning ECMAScript 6

Learning
Narayan Prusty

3 customer reviews
Rethink the way you develop with JavaScript by learning the ECMA standardized scripting language that lies at its foundations – ECMAScript 6!
$27.99
$34.99
RRP $27.99
RRP $34.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Preview in Mapt

Book Details

ISBN 139781785884443
Paperback202 pages

Book Description

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.

Table of Contents

Chapter 1: Playing with Syntax
The let keyword
The const keyword
Default parameter values
The spread operator
The rest parameter
The destructuring assignment
The arrow functions
The enhanced object literals
Summary
Chapter 2: Knowing Your Library
Working with numbers
Doing Math
Working with strings
Arrays
Collections
Object
Summary
Chapter 3: Using Iterators
The ES6 symbols
The iteration protocols
Generators
The "for…of" loop
The tail call optimization
Summary
Chapter 4: Asynchronous Programming
The JavaScript execution model
Writing asynchronous code
Promises to the rescue
The JavaScript APIs based on Promises
Summary
Chapter 5: Implementing the Reflect API
The Reflect object
Summary
Chapter 6: Using Proxies
Proxies in a nutshell
The Proxy API
The uses of proxies
Summary
Chapter 7: Walking You Through Classes
Understanding the Object-oriented JavaScript
Using classes
Using "super" in the object literals
Summary
Chapter 8: Modular Programming
The JavaScript modules in a nutshell
Implementing modules – the old way
Implementing modules – the new way
Summary

What You Will Learn

  • Learn the new syntax of ECMAScript 6
  • Use the new prototype-based features introduced by ES6
  • Execute ES6 in a non-supported ES6 environment
  • 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

Authors

Table of Contents

Chapter 1: Playing with Syntax
The let keyword
The const keyword
Default parameter values
The spread operator
The rest parameter
The destructuring assignment
The arrow functions
The enhanced object literals
Summary
Chapter 2: Knowing Your Library
Working with numbers
Doing Math
Working with strings
Arrays
Collections
Object
Summary
Chapter 3: Using Iterators
The ES6 symbols
The iteration protocols
Generators
The "for…of" loop
The tail call optimization
Summary
Chapter 4: Asynchronous Programming
The JavaScript execution model
Writing asynchronous code
Promises to the rescue
The JavaScript APIs based on Promises
Summary
Chapter 5: Implementing the Reflect API
The Reflect object
Summary
Chapter 6: Using Proxies
Proxies in a nutshell
The Proxy API
The uses of proxies
Summary
Chapter 7: Walking You Through Classes
Understanding the Object-oriented JavaScript
Using classes
Using "super" in the object literals
Summary
Chapter 8: Modular Programming
The JavaScript modules in a nutshell
Implementing modules – the old way
Implementing modules – the new way
Summary

Book Details

ISBN 139781785884443
Paperback202 pages
Read More
From 3 reviews

Read More Reviews