[The Definitive Guide to JavaScript (Seventh Edition)] Summary of Reading and Learning

write in front

image

Recently, I read "The Definitive Guide to JavaScript (Seventh Edition)" on and off for two months in my spare time. The "Definitive Guide to JavaScript" has always been called the "Rhino Book". I probably skipped the sixth edition before, because the book The thickness of the book is a bit "heavy", nearly 1,000 pages or so, and some knowledge is outdated. After reading it, I didn't read it carefully. Then I turned to the newly published seventh edition, which will be published in May 2020. Yes, it is understood that the 6th edition was published in 2011, and it has been 10 years since the front-end technology has been replaced very "rapidly", at least for people like me who learned back-end knowledge before, the front-end The technical change of the back-end is much faster than that of the back-end, and the requirements are relatively "harsh". How to say this? For example, Java has been updated to 16, but most Java developers are still at the stage of using Java 8. The new front-end technology has been updated, but if you don’t know how to use it, there will be an unreasonable embarrassment, such as Vite build tools, and then Such as Vue3 new features, TypeScript, etc.

Pull some useless crap, turn back. The biggest change in the seventh edition of The Definitive Guide to JavaScript is the removal of obsolete stuff and the addition of ES6's new syntax, new Web API, Node, popular tool libraries like Babel, and more. Compared with the sixth edition, the seventh edition is relatively "friendly", and the outdated content in the sixth edition has been deleted, such as EX4, Rhino, JSONP, XMLHttpRequest, and discussions on IE compatibility; the sixth edition has a total of 300 The language reference and client reference of the page were removed in the 7th edition. The thickness of the seventh edition book is less than 600 pages, which can be said to be light and thin, and it is comfortable to read.

On the whole

  • The first eight chapters cover traditional core parts of JavaScript, which are basically the same as in the sixth edition.
  • Chapters 9 through 14 cover the new ES6 syntax.
  • Chapters 15 to 17 talk about the main application scenarios of JavaScript: browser and Node-based server development, and finally involve JavaScript ecology and engineering, and introduce some important popular libraries for front-end development.

book content catalog

Chapter 1, Overview.

js overview, nothing to say.

Chapter 2, Lexical Structure

Basically the same as the 6th edition. Expanded unicode escapes into a separate section.

Chapter 3, Types, Values, and Variables

Basically the same as the 6th edition. Added Symbol data type.

Chapter 4, Expressions and Operators

Basically the same as the 6th edition. Added double quotes (??) and await operator.

Chapter 5, Statements

Basically the same as the 6th edition. Added content of yield, const, let, import, export.

Chapter 6, Objects

Basically the same as the 6th edition. Added content for spread operator (…).

Chapter 7, Arrays

Basically the same as the 6th edition. Added contents of Array.from(), flat(), flatMap(), copyWithin().

Chapter 8, Functions

Basically the same as the 6th edition. Added content about arrow functions, parameter defaults, and rest parameters.

Chapter 9, Classes

"Chapter 9 - Classes and Modules" in the sixth edition has been split into two separate chapters.
Added the class keyword and related content.

Chapter 10, Modules.

There was no built-in module syntax as of the 6th edition, so there was a subsection on modules in Chapter 9 of the 6th edition. The 7th edition has been greatly expanded to explain modules under Node and modules in ES6.

Chapter 11, The JavaScript Standard Library

This chapter is brand new. The previous 10 chapters covered the core of the JavaScript language. This chapter covers the language integration libraries and APIs. The content includes Set, Map, ArrayBuffer, regular matching, date and time class, Error class, JSON class, internationalization API, console API, URL API, timer. The content of the 6th edition "Chapter 10 - Pattern Matching with Regular Expressions" becomes a subsection of this chapter.

Chapter 12, Iterators and Generators

This chapter is brand new.

Chapter 13, Asynchronous JavaScript

This chapter is brand new. The content includes callback mode, Promise, async and await etc.

Chapter 14, Metaprogramming

This chapter is brand new and covers Proxy and Reflect objects.

Chapter 15, JavaScript in the Browser

Introduction to browsers and js.

Chapter 16, Node Server-Side JavaScript

Introduce Node-based server development.

Chapter 17, JavaScript Tools and Extensions

Some important popular libraries are currently developed for front-end development. Such as perttier, ESlint, Babel translator, etc.

Guess you like

Origin blog.csdn.net/weixin_43853746/article/details/122238910
Recommended