🍄object

reference types

JSvalue ⟩ object

an unordered collection of properties (name : value pairs).

// creating objects
{name: value}                        // object literal
new Object()                         // `new` statement
let obj = Object.create(prototype)   // specify an object's prototype

🈯 synonyms: "hash", "hashtable", "dictionary", "associated array".

most common things to do with objects

Last updated