Mid JavaScript

What are objects in JavaScript?

Objects store data in key-value pairs.

Example:

const user = { name: "Alice", age: 25 };

console.log(user.name); // Alice

More from JavaScript Tutorial

All questions for this course