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