🔰creating objects
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
objects can be created with
➕ operator
Ⓜ️
/
- closure can be used as an object.
// ⭐️ 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