
- English
- ePUB (mobile friendly)
- Available on iOS & Android
About this book
All of JavaScript's newest features, in depth, made easy to understand.
JavaScript is a rapidly changing language and it can be challenging to keep up with all the new toys being added. JavaScript: The New Toys explores the newest features of the world's most popular programming language while also showing readers how to track what's coming next. After setting the stage by covering who manages the process of improving JavaScript, how new features get introduced, terminology, and a high-level overview of new features, it details each new or updated item in depth, with example uses, possible pitfalls, and expert recommendations for updating old habits in light of new features. JavaScript: The New Toys:
- Covers all the additions to JavaScript in ES2015-ES2020 plus a preview of what's coming next
- Explores the latest syntax: nullish coalescing, optional chaining, let and const, class syntax, private methods, private fields, new.target, numeric separators, BigInt, destructuring, default parameters, arrow functions, async functions, await, generator functions, ... (rest and spread), template literals, binary and octal literals, ** (exponentiation), computed property/method names, for-of, for-await-of, shorthand properties, and others
- Details the new features and patterns including modules, promises, iteration, generators, Symbol, Proxy, reflection, typed arrays, Atomics, shared memory, WeakMap, WeakSet, and more
- Highlights common pitfalls and explains how to avoid them
- Shows how to follow the improvements process and even participate in the process yourself
- Explains how to use new features even before they're widely supported
With its comprehensive coverage and friendly, accessible style, JavaScript: The New Toys provides an invaluable resource for programmers everywhere, whether they work in web development, Node.js, Electron, Windows Universal Apps, or another JavaScript environment.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
1
The New Toys in ES2015âES2020, and Beyond
WHAT'S IN THIS CHAPTER?
- Definitions, who's who, and terminology
- Explanation of JavaScript versions (ES6? ES2020?)
- What are the ânew toysâ?
- The process driving new JavaScript features
- Tools for using next-generation JavaScript
CODE DOWNLOADS FOR THIS CHAPTER
https://thenewtoys.dev/bookcode or https://www.wiley.com/go/javascript-newtoys.DEFINITIONS, WHO'S WHO, AND TERMINOLOGY
Ecma? ECMAScript? TC39?
ES6? ES7? ES2015? ES2020?
- Standard ECMA-262
- 5th Edition / December 2009
- ECMAScript Language Specification
- Standard ECMA-262
- 6th Edition / June 2015
- ECMAScriptÂŽ 2015 Language Specification
Table of contents
- COVER
- TABLE OF CONTENTS
- INTRODUCTION
- 1 The New Toys in ES2015âES2020, and Beyond
- 2 Block-Scoped Declarations: let and const
- 3 New Function Features
- 4 Classes
- 5 New Object Features
- 6 Iterables, Iterators, for-of, Iterable Spread, Generators
- 7 Destructuring
- 8 Promises
- 9 Asynchronous Functions, Iterators, and Generators
- 10 Templates, Tag Functions, and New String Features
- 11 New Array Features, Typed Arrays
- 12 Maps and Sets
- 13 Modules
- 14 ReflectionâReflect and Proxy
- 15 Regular Expression Updates
- 16 Shared Memory
- 17 Miscellany
- 18 Upcoming Class Features
- 19 A Look Ahead âŚ
- APPENDIX: Fantastic Features and Where to Find ThemFantastic Features and Where to Find Them
- INDEX
- END USER LICENSE AGREEMENT