Switch language한국어
Back to the list

objects in JavaScript

TL;DR AI

Key summary

1 min read
  1. An object is a collection of key-value pairs.

  2. Object values can be data or functions.

  3. A function inside an object is called a method, and this refers to the current object.

  4. Objects can be created with an object literal, a constructor function, or a class.

  5. Objects are dynamic and reference types, so changes can affect shared references.

Read the original