Content

<aside> 💡

From lesson 79 ⇒ 85

</aside>

Assignment

<aside> 💡

Solve the assignments of elzero

📝 Task: 1 Create an object called calculator that has two properties: num1 and num2, and a method called sum that returns the sum of those numbers using this.

📝 Task: 2 You have an object called school with multiple students, each student has a name and grades.

const school = {
  students: {
    student1: { name: "Ali", grades: [90, 85, 92] },
    student2: { name: "Sara", grades: [88, 79, 95] },
    student3: { name: "Omar", grades: [70, 80, 65] }
  }
};

Write a function that loops over all students and logs:

Hints :