Super Short History
Use capital letter for function constructor: prevent missing “new” operator during construction
- Create an empty object
- Invoke the function, point the keyword “this” to the empty object
- Pointing prototype to the function constructor
- Return the object
We can construct an object via function (function constructor) – just an regular function.
Build-in function constructors
Pure Prototypal Inheritance
Change the prototype along the way
Make object and create new objects by pointing prototype to this object using Object.create(), and override properties and methods.
Implement in newer browsers
Use polyfill, note the scenario of usage
Just another syntactical way(syntactic sugar) to construct objects.