Prototype chain
- Alias: Implicit prototype chain
- Function: Find an object’s properties (methods)
Prototype chain diagram
- When accessing properties of an object
- First look in their own properties, find the return
- If not, look up the __proto__ chain and return
- If not found, return undefined
- __proto__ is the same for all functions
- Function() : prototypeprotoAll point to the Function prototype
- var Foo = new Function()
- Function = new Function()