You Don't Know JS: ES6 & Beyond cover

You Don't Know JS: ES6 & Beyond

Rating 3.9
Word count
420 words
Chapters
17
Series
You Don't Know JS
ISBN
9787115471659

Tags

Summary

You Don't Know JS: ES6 & Beyond is the concluding Chinese-language volume of the "You Don't Know JS" series by American technical author Kyle Simpson. Translated by Shan Ye and published by Posts & Telecom Press in 2018, it belongs to the Turing Programming Series. The original series began as open-source notes on GitHub and focuses on the underlying mechanisms of JavaScript that many developers misunderstand or avoid. This volume actually contains two main parts. Part One, "Getting Started," is an introduction to the whole series: it begins with code, expressions, operators, values and types, variables, blocks, conditionals, loops, and functions, then moves on to objects, built-in type methods, value comparison, strict mode, immediately invoked function expressions, closures, this, prototypes, and the transitional "old and new" topics of polyfilling and transpiling, finally giving an overview of the themes of the later volumes. Part Two, "ES6 & Beyond," systematically sorts through the syntax and capabilities ES6 introduced: block-scoped declarations, spread/rest, default parameters, destructuring, object literal extensions, template literals, arrow functions, for..of, regular expression and Unicode extensions, and symbols; it then explains code organization through iterators and generators, asynchronous flow control driven by Promises and generators, collection types, new APIs, metaprogramming, and prospects for versions after ES6. The book is not long (about 260 pages), and its style is "break down first, then build up": it first points out common misconceptions, then provides underlying explanations and verifiable code examples, making it suitable for turning scattered experience into a system.

Editor's review

很多人读完《上卷》《中卷》,对作用域、this、类型转换已经“心中有数”,却在真正写 ES6 代码时卡住:解构怎么写才清楚?生成器与 Promise 到底解决什么问题?. 这本书正好补上这一环。 它最大的价值在于“把碎片拼成地图”。第一部分用极短的篇幅把编程基础和语言核心串成一条线,并明确告诉你每一块知识在系列中的位置;第二部分则按语法、代码组织、异步流控制、集合、新增 API、元编程逐层展开,让 let/const、模板字面量、箭头函数这些天天在用的写法不再只是背下来的结论,而是有原因、有边界、有坑的工具。 作者的写法接近“当面讲解”:先给出反例,再问一句“你真的明白吗”,然后用代码把机制摊开。对准备面试、接手陌生代码库,或者想把自己从“会用框架”推向“懂语言”的前端来说,是很划算的一本薄书。需要注意的是,ES6 之后的语言演进很快,书中“未来展望”部分只能代表当年的视角,阅读时应配合官方规范与最新文档看。

Who it's for

A good fit for

  • 已掌握基本 JS 语法、想系统了解 ES6 新特性的前端开发者
  • 读过本系列上卷或中卷,希望补全知识地图的读者
  • 准备前端面试、需要把零散用法串成原理的人
  • 使用过 Promise、生成器却说不清底层机制的中级开发者

Not a good fit for

  • 完全零基础、尚未写过任何代码的读者
  • 只想快速查 API 手册、不想读原理讲解的人
  • 希望系统学习最新版 ES2020+ 语法与工程实践的人

Reading tips

  1. 先读第一部分第3章的知识地图,再决定第二部分的阅读顺序。
  2. 每读完一节就动手改写自己项目里的对应代码,用实际运行结果验证理解。
  3. 把第4章异步流控制与第3章生成器连起来读,先看生成器再看 Promise 组合用法。
  4. 涉及“ES6之后”的章节建议对照 MDN 与 TC39 提案进度阅读,避免以旧结论指导新代码。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. O'Reilly Media, Inc. Introduction
  2. Preface
  3. Acknowledgments
  4. Part One: Getting Started
  5. Foreword
  6. Chapter 1: Into Programming (Code / Expressions / Practice: Output and Input / Operators / Values and Types / Code Comments / Variables / Blocks / Conditionals / Loops / Functions / Summary)
  7. Chapter 2: Into JavaScript (Values and Types / Objects / Built-in Type Methods / Comparing Values / Variables / Conditionals / Strict Mode / Functions as Values / Immediately Invoked Function Expressions / Closures / The this Identifier / Prototypes / Old and New: Polyfilling, Transpiling / Non-JavaScript / Summary)
  8. Chapter 3: Into "You Don't Know JS" (Scope and Closures / this and Object Prototypes / Types and Grammar / Async and Performance / ES6 & Beyond / Summary)
  9. Part Two: ES6 & Beyond
  10. Chapter 1: ES? Now and Future (Version / Transpiling / Summary)
  11. Chapter 2: Syntax (Block-Scoped Declarations: let, const, Block-Scoped Functions / Spread and Rest / Default Parameter Values / Destructuring / Too Many, Too Few, Just Right / Object Literal Extensions / Template Literals / Arrow Functions / for..of Loops / Regular Expressions / Number Literal Extensions / Unicode / Symbols)
  12. Chapter 3: Organization (Iterators / Generators / Modules)
  13. Chapter 4: Async Flow Control (Promises / Generators and Promises / async Functions)
  14. Chapter 5: Collections (TypedArray / Map / WeakMap / Set / WeakSet)
  15. Chapter 6: New APIs (Array / Object / Math / Number / String / Meta Properties)
  16. Chapter 7: Metaprogramming (Function Names / Symbols and Their Uses / Proxies / Reflect)
  17. Chapter 8: Beyond ES6 (Looking Ahead to Later Versions)

FAQ

这本书和《中卷》内容会重复吗?
会有一部分交叉但不能互相替代。中卷重点在类型与语法、异步和性能;下卷第二部分按 ES6 特性重新组织,更强调新语法的用法与设计动机。若只读一本,建议先看中卷打底,再读下卷补充 ES6 视角。
零基础能直接读下卷吗?
不建议。书中第一部分虽名为“起步上路”,但节奏偏快,默认读者有编程经验。完全没有写过 JavaScript 的读者宜先读一本入门教材,再回到本书。
书中的 ES6 内容现在还算过时吗?
ES6 本身早已定稿,语法与机制的讲解至今仍然成立;但“ES6之后”的展望部分只反映成书时的进度。涉及新特性时,应以 MDN 文档和最新提案为准。
ISBN 和出版年份为什么有多个说法?
该书 ISBN 为 9787115471659,人民邮电出版社 2018 年首版,部分电商与百科条目标注的 2020 年、2024 年为重印或再版时间,内容主体一致。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category