objects in JavaScript

TL;DR AI
1 min readKey summary
An object is a collection of key-value pairs.
Object values can be data or functions.
A function inside an object is called a method, and this refers to the current object.
Objects can be created with an object literal, a constructor function, or a class.
Objects are dynamic and reference types, so changes can affect shared references.

