Description
This tutorial bypassed some basic JavaScript syntax, directly explaining the two most difficult parts of JavaScript, and the two most significant differences from other mainstream object-oriented languages- prototypes and closures, and of course, the prototype chain and the scope chain. Help you uncover the most mysterious veil of JavaScript.
Why do we have to talk about these two points of knowledge?
This is my experience in learning JavaScript for so many years, the most difficult to understand, the most common mistakes in the place, learning these two points of knowledge, will give you a deeper understanding of JavaScript, at least understand the prototype and scope, you can no longer be a JavaScript novice. In addition, these two aspects of JavaScript and other languages are different places, learning such a design, can help you broaden your horizons, to help you understand the programming language design ideas. After all, you can't just keep your eyes on one language.
Not much gossip, believe the friends who run this topic, also know the importance of JavaScript prototypes and scopes.
The last note: by the series of tutorials I am not copy of other books or web materials, but all by my understanding of knowledge and step-by-step writing. The idea is that I am writing on the side of thinking. There is nothing wrong with the place, welcome correction.
Directory:
Deep understanding of JavaScript prototypes and Closures (1)--Everything is an object
Deep understanding of JavaScript prototypes and Closures (2)--relationships between functions and objects
In-depth understanding of JavaScript prototypes and Closures (3)--prototype prototypes
In-depth understanding of JavaScript prototypes and Closures (4)-Implicit prototypes
Deep understanding of JavaScript prototypes and Closures (5)--instanceof
In-depth understanding of JavaScript prototypes and closures (6)-Inheritance
In-depth understanding of JavaScript prototypes and closures (7)-Prototyping flexibility
In-depth understanding of JavaScript prototypes and closures (8)--A brief description of the execution context
In-depth understanding of JavaScript prototypes and closures (9)--Brief description of "execution context"
Deep understanding of JavaScript prototypes and closures (--this)
In-depth understanding of JavaScript prototypes and closures (11)-Execution context Stacks
In-depth understanding of JavaScript prototypes and Closures (12)-Introduction to Scope
Deep understanding of JavaScript prototypes and closures (13)-Scope and context
In-depth understanding of JavaScript prototypes and Closures (14)-from "Free variables" to "Scope chains"
In-depth understanding of JavaScript prototypes and Closures (15)--closures
In-depth understanding of JavaScript prototypes and Closures (16)-End
Post-Supplement:
In-depth understanding of JavaScript prototypes and Closures (17)--Complement this
In-depth understanding of JavaScript prototypes and Closures (18)-Supplement: Context and scope relationships
Deep understanding of JavaScript prototypes and closures (end)