Skip to content

Objects

Objects are collections of key-value pairs and the most fundamental data structure in JavaScript. Almost everything in JavaScript is an object or can behave like one.

  • Create and manipulate objects using literals, constructors, and methods
  • Understand property descriptors and configuration
  • Master destructuring, spread, and Object static methods
TopicDescription
Object LiteralsCreating objects with {} syntax
PropertiesProperty names, values, computed properties
MethodsFunctions as object properties
DestructuringExtracting properties into variables
SpreadCopying and merging objects
Object.freeze()Making objects immutable
Object.seal()Preventing property addition/deletion
Property DescriptorsConfiguring property behavior
Object.defineProperty()Fine-grained property control

2–3 hours

  • Arrays
  • Classes (Phase 2)
  • Prototypes (Phase 2)