Professional JavaScript for Web Developers (4th Edition) cover

Professional JavaScript for Web Developers (4th Edition)

Rating 4.2
Word count
998K words
Chapters
32
Series
Turing Programming Series · Web Development
ISBN
9787115545381

Tags

Summary

Professional JavaScript for Web Developers (4th Edition) is the widely circulated "Red Book" of the front-end world—a nickname derived from its iconic red cover. Fully rewritten to the ECMAScript 2019 specification, the book covers both the language itself and its practical application in the browser. Author Matt Frisbie has over a decade of web development experience, and runnable examples run through every chapter. The main text comprises 28 chapters in roughly three parts. Part I (Chapters 1–11) lays the language foundation: JavaScript's history and composition, the script element and document modes, syntax and keywords, data types and operators, variable scope and memory, basic reference types such as Date and RegExp, arrays and typed arrays along with collection types like Map and Set, iterators and generators, object-oriented programming with objects and classes, proxies and reflection, the many details of functions (closures, recursion, tail-call optimization), and promises and async functions. Part II (Chapters 12–19) turns to the browser environment: the BOM, client detection, the DOM and its extensions, DOM2 and DOM3, events, animation and Canvas graphics, and form scripting. Part III (Chapters 20–28) covers engineering practice: various JavaScript APIs, error handling and debugging, XML and JSON, network requests and remote resources (including the Fetch API), client-side storage, modules, worker threads, and best practices. Appendices add ES2018 and ES2019 features, strict mode, common libraries, frameworks, and toolchains, so readers can jump to what they need. The book is known for explaining principles thoroughly before giving examples; it is a desk reference to return to again and again rather than a read-once volume.

Editor's review

前端书多,能被称为「红宝书」的只有它。第4版不是给旧版打补丁,而是按ECMAScript 2019整体重写:旧版中大量过时的浏览器兼容内容被删,替换为Fetch API、模块、工作者线程、代理与反射等现代规范,所以哪怕你手里有第3版,这一版也值得重买。 它最难得的地方是「全」和「实」:全,指从语法、类型、闭包一路写到DOM、事件、Canvas、网络请求和工程实践,28章几乎覆盖前端日常会遇到的所有底层知识;实,指概念后面紧跟着可运行示例,读完能马上在浏览器里验证。作者做过Google和DoorDash的工程师,行文不绕弯子,对「为什么这么设计」也交代得清楚。 李松峰的译文延续了图灵前端书的一贯水准,术语统一,读起来顺畅。865页的篇幅确实压手,但这也是它的用法——不是从头啃到尾,而是遇到问题时精准翻到某一章。它适合作为长期放在书桌旁的参考书,配合项目一起读,收益最大。

Who it's for

A good fit for

  • 已掌握HTML/CSS基础、想系统学JavaScript的入门者
  • 有1—3年前端经验、希望补齐语言底层机制的开发者
  • 准备面试、需要梳理闭包、原型、异步等考点的求职者
  • 需要一本常备案头参考书的前端团队与培训机构

Not a good fit for

  • 完全没有编程基础、尚未接触过任何语言的零基础读者
  • 只想快速上手某个框架(如Vue、React)的读者
  • 寻找碎片化速查手册、不愿读长篇幅原理讲解的人

Reading tips

  1. 初读按顺序读第1—11章打牢语言基础,第12章以后可按项目需要跳读。
  2. 每章的示例务必亲手敲一遍并在控制台调试,只读不写很难真正掌握。
  3. 第8、9、10、11章(对象与类、代理、函数、异步)建议读两遍,是全书精华。
  4. 把它当工具书长期放在手边,遇到DOM、事件、网络请求问题时回查对应章节。

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. Chapter 1 What Is JavaScript
  2. Chapter 2 JavaScript in HTML
  3. Chapter 3 Language Basics
  4. Chapter 4 Variables, Scope, and Memory
  5. Chapter 5 Basic Reference Types
  6. Chapter 6 Collection Reference Types
  7. Chapter 7 Iterators and Generators
  8. Chapter 8 Objects, Classes, and Object-Oriented Programming
  9. Chapter 9 Proxies and Reflection
  10. Chapter 10 Functions
  11. Chapter 11 Promises and Async Functions
  12. Chapter 12 The BOM
  13. Chapter 13 Client Detection
  14. Chapter 14 The DOM
  15. Chapter 15 DOM Extensions
  16. Chapter 16 DOM2 and DOM3
  17. Chapter 17 Events
  18. Chapter 18 Animation and Canvas Graphics
  19. Chapter 19 Form Scripting
  20. Chapter 20 JavaScript APIs
  21. Chapter 21 Error Handling and Debugging
  22. Chapter 22 Working with XML
  23. Chapter 23 JSON
  24. Chapter 24 Network Requests and Remote Resources
  25. Chapter 25 Client-Side Storage
  26. Chapter 26 Modules
  27. Chapter 27 Worker Threads
  28. Chapter 28 Best Practices
  29. Appendix A ES2018 and ES2019
  30. Appendix B Strict Mode
  31. Appendix C JavaScript Libraries and Frameworks
  32. Appendix D JavaScript Tools

FAQ

这本书适合零基础自学吗?
需要一定基础。书中假设读者了解HTML和基本编程概念,直接从语法、类型、作用域讲起。完全没写过代码的读者,建议先读一本入门级JavaScript教程,再回头读这本。
第4版和第3版有什么区别?
第4版按ECMAScript 2019全面重写,删减了大量过时的浏览器兼容与旧API内容,新增类、期约、迭代器与生成器、代理与反射、模块、工作者线程、Fetch API等现代规范章节。
为什么这本书被叫作「红宝书」?
因为它的中文版封面长期采用大红色调,前端社区便习惯以「红宝书」称呼它,与「犀牛书」(JavaScript权威指南)并列为前端经典。
读完这本书能达到什么水平?
认真读完并动手实践,可以较系统地掌握JavaScript语言机制与浏览器端开发要点,具备独立开发中小型前端项目的基础,也足以应对多数前端面试的语言部分。

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