30% compalted

pull/420/head
Fitsumhelina 10 months ago
parent 21e73f5f85
commit 7eb4cd58d5

@ -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. // 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 = { // const personAccount = {
// firstName: 'fitsum', // firstName: 'fitsum',
// lastName: 'helina', // lastName: 'helina'
// incomes: [ // incomes: [
// { description: 'Salary', amount: 50000 }, // { description: 'Salary', amount: 50000 },
// { description: 'Bonus', amount: 10000 }, // { description: 'Bonus', amount: 10000 },
@ -155,6 +155,7 @@ const products = [
} }
// The products array has three elements and each of them has six properties. // The products array has three elements and each of them has six properties.
// a. Create a function called rateProduct which rates the product // a. Create a function called rateProduct which rates the product
// b. Create a function called averageRating which calculate the average rating of a product // b. Create a function called averageRating which calculate the average rating of a product

Loading…
Cancel
Save