From 7eb4cd58d551f31f7a08b32f8a159d4a4b57eb7f Mon Sep 17 00:00:00 2001 From: Fitsumhelina Date: Fri, 22 Nov 2024 20:53:38 +0300 Subject: [PATCH] 30% compalted --- Exercises/day-1/object-exercise-3.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Exercises/day-1/object-exercise-3.js b/Exercises/day-1/object-exercise-3.js index 32ad81e..c2a2824 100644 --- a/Exercises/day-1/object-exercise-3.js +++ b/Exercises/day-1/object-exercise-3.js @@ -3,7 +3,7 @@ // Create an object literal called personAccount. It has firstName, lastName, incomes, expenses properties and it has totalIncome, totalExpense, accountInfo,addIncome, addExpense and accountBalance methods. Incomes is a set of incomes and its description and expenses is a set of incomes and its description. // const personAccount = { // firstName: 'fitsum', -// lastName: 'helina', +// lastName: 'helina' // incomes: [ // { description: 'Salary', amount: 50000 }, // { description: 'Bonus', amount: 10000 }, @@ -155,6 +155,7 @@ const products = [ } // The products array has three elements and each of them has six properties. + // a. Create a function called rateProduct which rates the product // b. Create a function called averageRating which calculate the average rating of a product