Home/Tutorials/JavaScript/Objects Basics

0 of 3 saved

JavaScript5 min read

Objects Basics

Read this chapter, write the program on this page, then pass a short check to open the next one.

Key/value bags and methods.

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.