天天读书每日更新读书心得、读书笔记、读书摘要

Understanding ECMAScript 6

内容简介:

ECMAScript 6 represents the biggest update to the core of JavaScript in the history of the language. In Understanding ECMAScript 6, expert developer Nicholas C. Zakas provides a complete guide to the object types, syntax, and other exciting changes that ECMAScript 6 brings to JavaScript. Every chapter is packed with example code that works in any JavaScript environment so you'll be able to see new features in action. You'll learn:

* How ECMAScript 6 class syntax relates to more familiar JavaScript concepts

* What makes iterators and generators useful

* How arrow functions differ from regular functions

* Ways to store data with sets, maps, and more

* The power of inheritance

* How to improve asynchronous programming with promises

* How modules change the way you organize code

Whether you're a web developer or a Node.js developer, you'll find Understanding ECMAScript 6 indispensable on your journey from ECMAScript 5 to ECMAScript 6.



作者简介:

Nicholas C. Zakas has been working on web applications since 2000, focusing on frontend development, and is known for writing and speaking about frontend best practices. He honed his experience during his five years at Yahoo!, where he was principal frontend engineer for the Yahoo! home page. He is the author of several books, including The Principles of Object-Oriented JavaScript (No Starch Press) and Professional JavaScript for Web Developers (Wrox).



Introduction Chapter 1: Block Bindings Chapter 2: Strings and Regular Expressions Chapter 3: Functions Chapter 4: Expanded Object Functionality Chapter 5: Destructuring for Easier Data Access Chapter 6: Symbols and Symbol Properties Chapter 7: Sets and Maps Chapter 8: Iterators and Generators Chapter 9: Introducing JavaScript Classes Chapter 10: Improved Array Capabilities Chapter 11: Promises and Asynchronous Programming Chapter 12: Proxies and the Reflection API Chapter 13: Encapsulating Code with Modules Appendix A: Minor Changes in ECMAScript 6 Appendix B: Understanding ECMAScript 7 (2016) · · · · · · (收起)

原文摘录:
function Person(name) { if (typeof new.target === Person) { this.name = name; // using new } } (查看原文) Tumars 1赞 2017-11-08 17:45:13 —— 引自第56页 如果向Promise.resolve()方法或Promise.reject()方法传入一个Promise,那么这个 Promise会被直接返回。 (查看原文) 大锤八十 2021-03-21 11:18:03 —— 引自章节:-- 创建已处理的Promise 244