JS ⟩ value ⟩ object ⟩ create
objects can be created with
✡️ object literal
➕ new operator
Ⓜ️ Object.create()
// ⭐️ creating objects with different prototypes {name: value} // object's prototype === Object.prototype new F() // object's prototype === F.prototype Object.create(proto) // object's prototype === proto
object literal / array literal
"pure" object
closure as object - closure can be used as an object.
JavaScript: The Definitive Guide ⟩ 6.2 Creating Objects
Object.create()
Last updated 2 years ago