ABE-IPSABE HOLDINGABE BOOKS
English Polski
On-line access

Bookstore

0.00 PLN
Bookshelf (0) 
Your bookshelf is empty
JavaScript: The New Toys

JavaScript: The New Toys

Authors
Publisher Wiley & Sons
Year
Pages 608
Version paperback
Language English
ISBN 9781119367956
Categories Web programming
Delivery to United States

check shipping prices
Ask about the product
Email
question
  Send
Add to bookshelf

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 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 supportedWith 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.

JavaScript: The New Toys

Table of contents

Introduction xxxiChapter 1: The New Toys In ES2015-ES2020, and Beyond 1Definitions, Who's Who, and Terminology 2What are the "New Toys"? 4How Do New Toys Get Created? 6Keeping Up with the New Toys 9Using Today's Toys in Yesterday's Environments, and Tomorrow's Toys Today 10Review 15Chapter 2: Block-Scoped Declarations: Let and Const 17An Introduction to let and const 18True Block Scope 18Repeated Declarations are an Error 19Hoisting and the Temporal Dead Zone 20A New Kind of Global 22const: Constants for JavaScript 24Block Scope in Loops 26Old Habits to New 36Chapter 3: New Function Features 39Arrow Functions and Lexical this, super, etc. 40Default Parameter Values 45"Rest" Parameters 50Trailing Commas in Parameter Lists and Function Calls 52The Function name Property 53Function Declarations in Blocks 55Function Declarations in Blocks: Standard Semantics 57Old Habits to New 60Chapter 4: Classes 65What is a Class? 66Introducing the New class Syntax 66Comparing with the Older Syntax 75Creating Subclasses 77Leaving Off Object.prototype 97new.target 98class Declarations vs. class Expressions 101More to Come 103Old Habits to New 104Chapter 5: New Object Features 105Computed Property Names 106Shorthand Properties 107Getting and Setting an Object's Prototype 107Method Syntax, and super Outside Classes 109Symbol 112New Object Functions 120Symbol.toPrimitive 123Property Order 125Property Spread Syntax 127Old Habits to New 128Chapter 6: Iterables, Iterators, For-Of, Iterable Spread, Generators 131Iterators, Iterables, the for-of Loop, and Iterable Spread Syntax 131Generator Functions 146Old Habits to New 163Chapter 7: Destructuring 165Overview 165Basic Object Destructuring 166Basic Array (and Iterable) Destructuring 169Defaults 170Rest Syntax in Destructuring Patterns 172Using Different Names 173Computed Property Names 174Nested Destructuring 174Parameter Destructuring 175Destructuring in Loops 178Old Habits to New 179Chapter 8: Promises 181Why Promises? 182Promise Fundamentals 182Using an Existing Promise 186Adding Handlers to Already Settled Promises 201Creating Promises 202Other Promise Utility Methods 207Promise Patterns 210Handle Errors or Return the Promise 210Promises in Series 211Promises in Parallel 213Promise Subclasses 218Old Habits to New 219Chapter 9: Asynchronous Functions, Iterators, and Generators 221async Functions 222async Iterators, Iterables, and Generators 232for-await-of 238Old Habits to New 238Chapter 10: Templates, Tag Functions, and New String Features 241Template Literals 241Improved Unicode Support 250Iteration 255New String Methods 256Updates to the match, split, search, and replace Methods 259Old Habits to New 260Chapter 11: New Array Features, Typed Arrays 263New Array Methods 264Iteration, Spread, Destructuring 276Stable Array Sort 276Typed Arrays 277Old Habits to New 292Chapter 12: Maps and Sets 293Maps 293Sets 300WeakMaps 304WeakSets 314Old Habits to New 316Chapter 13: Modules 319Introduction to Modules 319Module Fundamentals 320Renaming Exports 331Re-Exporting Exports from Another Module 332Renaming Imports 333Importing a Module's Namespace Object 333Exporting Another Module's Namespace Object 334Importing a Module Just for Side Effects 335Import and Export Entries 335Imports are Live and Read-Only 338Module Instances are Realm-Specific 340How Modules are Loaded 341Import/Export Syntax Review 348Dynamic Import 350Tree Shaking 357Bundling 359Import Metadata 360Worker Modules 360Old Habits to New 362Chapter 14: Reflection--Reflect and Proxy 365Reflect 365Proxy 371Old Habits to New 395Chapter 15: Regular Expression Updates 397The Flags Property 398New Flags 398Named Capture Groups 400Lookbehind Assertions 405Unicode Features 408Old Habits to New 413Chapter 16: Shared Memory 417Introduction 417Here There Be Dragons! 418Browser Support 418Shared Memory Basics 420Memory is Shared, Not Objects 426Race Conditions, Out-of-Order Stores, Stale Values, Tearing, and More 427The Atomics Object 429Shared Memory Example 434Here There Be Dragons! (Again) 455Old Habits to New 460Chapter 17: Miscellany 461BigInt 462New Integer Literals 465New Math Methods 467Exponentiation Operator (**) 468Date.prototype.toString Change 470Function.prototype.toString Change 471Number Additions 471Symbol.isConcatSpreadable 474Various Syntax Tweaks 475Various Standard Library / Global Additions 479Annex B: Browser-Only Features 482Tail Call Optimization 488Old Habits to New 491Chapter 18: Upcoming Class Features 493Public and Private Class Fields, Methods, and Accessors 493Old Habits to New 514Chapter 19: A Look Ahead . . .517Top-Level await 518WeakRefs and Cleanup Callbacks 525RegExp Match Indices 533String.prototype.replaceAll 535Atomics asyncWait 535Various Syntax Tweaks 536Legacy Deprecated RegExp Features 537Thank You for Reading! 538Appendix: Fantastic Features and Where to Find Them 539Index 557

We also recommend books

Strony www Białystok Warszawa
801 777 223