Objects
1. What is an Object?
let person = {
name: "John",
age: 30,
isStudent: true
};
console.log(person.name); // "John"
console.log(person.age); // 30
console.log(person.isStudent); // true2. Accessing Object Properties
console.log(person.name); // "John"console.log(person["name"]); // "John"
3. Adding and Modifying Properties
4. Removing Properties
5. Methods
6. Iterating Over Object Properties
7. Nested Objects
8. Object Destructuring
Use Case - a Library object:
Help us improve the content 🤩
Last updated