Back to JavaScript

JavaScript Tutorial

Objects

Group related data using key-value pairs.

Objects are useful for representing real-world things like users, lessons, products, and settings.

Each property has a name and a value.

javascript
const lesson = {
  title: "JavaScript Basics",
  duration: 25,
  level: "Beginner"
};