JavaScript: The New Toys
- 9h 52m
- T.J. Crowder
- John Wiley & Sons (US)
- 2020
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.
About the Author
T.J. Crowder is a software engineer with 30 years of experience, including over 15 years of professional work in JavaScript. He runs Farsight Software, a software contracting and product company. He's often found helping people on Stack Overflow, where he's a top 10 all-time contributor and the top JavaScript contributor. When not working or writing, he&no, sorry, he's always working or writing – or spending time with his wonderful, supportive wife and fantastic son.
Visit us at www.wiley.com for free code samples.
In this Book
-
The New Toys in ES2015–ES2020, and Beyond
-
Block-Scoped Declarations: let and const
-
New Function Features
-
Classes
-
New Object Features
-
Iterables, Iterators, for-of, Iterable Spread, Generators
-
Destructuring
-
Promises
-
Asynchronous Functions, Iterators, and Generators
-
Templates, Tag Functions, and New String Features
-
New Array Features, Typed Arrays
-
Maps and Sets
-
Modules
-
Reflection—Reflect and Proxy
-
Regular Expression Updates
-
Shared Memory
-
Miscellany
-
Upcoming Class Features
-
A Look Ahead …