Learning ECMAScript 6

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

Learning ECMAScript 6

Narayan Prusty

1 customer reviews
Rethink the way you develop with JavaScript by learning the ECMA standardized scripting language that lies at its foundations – ECMAScript 6!
Mapt Subscription
FREE
$29.99/m after trial
eBook
$19.60
RRP $27.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
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
  • Access this title in the Mapt reader
$0.00
$19.60
$34.99
$29.99 p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Learning ECMAScript 6 Book Cover
Learning ECMAScript 6
$ 27.99
$ 19.60
Mastering Machine Learning Algorithms Book Cover
Mastering Machine Learning Algorithms
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $28.98
Add to Cart

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 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
MEAN Web Development Book Cover
MEAN Web Development
$ 29.99
$ 3.00
React.js Essentials Book Cover
React.js Essentials
$ 23.99
$ 16.80
AngularJS Web Application Development Cookbook Book Cover
AngularJS Web Application Development Cookbook
$ 29.99
$ 6.00