Book description
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
andconst
,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.
Table of contents
- COVER
- 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
- INTRODUCTION TO MODULES
- MODULE FUNDAMENTALS
- RENAMING EXPORTS
- RE-EXPORTING EXPORTS FROM ANOTHER MODULE
- RENAMING IMPORTS
- IMPORTING A MODULE'S NAMESPACE OBJECT
- EXPORTING ANOTHER MODULE'S NAMESPACE OBJECT
- IMPORTING A MODULE JUST FOR SIDE EFFECTS
- IMPORT AND EXPORT ENTRIES
- IMPORTS ARE LIVE AND READ-ONLY
- MODULE INSTANCES ARE REALM-SPECIFIC
- HOW MODULES ARE LOADED
- IMPORT/EXPORT SYNTAX REVIEW
- DYNAMIC IMPORT
- TREE SHAKING
- BUNDLING
- IMPORT METADATA
- WORKER MODULES
- OLD HABITS TO NEW
- 14 Reflection—Reflect and Proxy
- 15 Regular Expression Updates
- 16 Shared Memory
-
17 Miscellany
- BIGINT
- NEW INTEGER LITERALS
- NEW MATH METHODS
- EXPONENTIATION OPERATOR (**)
- DATE.PROTOTYPE.TOSTRING CHANGE
- FUNCTION.PROTOTYPE.TOSTRING CHANGE
- NUMBER ADDITIONS
- SYMBOL.ISCONCATSPREADABLE
- VARIOUS SYNTAX TWEAKS
- VARIOUS STANDARD LIBRARY / GLOBAL ADDITIONS
- ANNEX B: BROWSER-ONLY FEATURES
- TAIL CALL OPTIMIZATION
- OLD HABITS TO NEW
- NOTES
- 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
Product information
- Title: JavaScript
- Author(s):
- Release date: July 2020
- Publisher(s): Wrox
- ISBN: 9781119367956
You might also like
book
Rediscovering JavaScript
JavaScript is no longer to be feared or loathed - the world's most popular and ubiquitous …
book
JavaScript Everywhere
JavaScript is the little scripting language that could. Once used chiefly to add interactivity to web …
book
JavaScript Next: Your Complete Guide to the New Features Introduced in JavaScript, Starting from ES6 to ES9
JavaScript has finally grown up. Armed with a slew of new features, JavaScript now makes writing …
book
Simplifying JavaScript
The best modern JavaScript is simple, readable, and predictable. Learn to write modern JavaScript not by …