Objects Basics
Objects store named properties. Use them for records, configs, and methods.
- Access with obj.key or obj["key"].
- const freezes the binding, not nested fields.
- Object.keys / values / entries help inspect.
const user = { name: "Ada", role: "dev" };
console.log(user.name, Object.keys(user).join(","));
After you read this chapter, use Write (when available) and Quiz on this page to lock it in.