- Types and Coercion Systems
- Must know this to understand JS the act, process, or power of coercing
- They used coercion to obtain the confession.
- Scope and Closures System
- Closure systems is the most important concept in computing science
- This and Object Prototype System
- Webpack is complicated but knowing exactly the difference between an object, the prototype chain, and the closure and lexical scope chain is really knowing JS.
Video-02_Scope & Closures Intro
Closure_What is it?
Scope – Where to look for things
- Analogy-Variables are colored marbles and to find variables we place a colored marble in the same color bucket. I.E.: Red marbles and red buckets, blue marbles in blue buckets, etc. This is Scope. The set of rules we use to sort and find variables.
With scope, what are we looking for?
- Looking for the value
- Adding to the value