JavaScript
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > JavaScript: The New Toys
JavaScript: The New Toys

JavaScript: The New Toys

|
     0     
5
4
3
2
1




International Edition


About the 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.

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


Best Sellers


Product Details
  • ISBN-13: 9781119367956
  • Publisher: John Wiley & Sons Inc
  • Binding: Paperback
  • Language: English
  • Returnable: N
  • Spine Width: 33 mm
  • Weight: 1092 gr
  • ISBN-10: 1119367956
  • Publisher Date: 27 Aug 2020
  • Height: 231 mm
  • No of Pages: 608
  • Returnable: N
  • Sub Title: The New Toys
  • Width: 183 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
JavaScript: The New Toys
John Wiley & Sons Inc -
JavaScript: The New Toys
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

JavaScript: The New Toys

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!