Services Work Learn About Contact
0/10
Lesson 7 of 10

Objects

Objects store data as key-value pairs. Access values with dot notation (obj.name) or bracket notation (obj["name"]).

JS
let user = {
  name: "Ali",
  age: 25,
  isAdmin: false
};

console.log(user.name);      // "Ali"
user.age = 26;
console.log(user["age"]);    // 26
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed JavaScript!

You finished all 10 lessons and quizzes. You now know the basics of JavaScript.