From 99e899ea89e8d62824c4f7c98707cddff8bbf5db Mon Sep 17 00:00:00 2001 From: Menai Ala Eddine Date: Sat, 11 Feb 2023 15:28:36 +0100 Subject: [PATCH] :wrench: enumerate questions to improve readability. --- 08_Day_Objects/08_day_objects.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/08_Day_Objects/08_day_objects.md b/08_Day_Objects/08_day_objects.md index 69f5dc4..b8a378a 100644 --- a/08_Day_Objects/08_day_objects.md +++ b/08_Day_Objects/08_day_objects.md @@ -579,13 +579,17 @@ console.log(copyPerson.hasOwnProperty('score')) ] ``` - Imagine you are getting the above users collection from a MongoDB database. - a. Create a function called signUp which allows user to add to the collection. If user exists, inform the user that he has already an account. - b. Create a function called signIn which allows user to sign in to the application + 2. Imagine you are getting the above users collection from a MongoDB database. + + **a.** Create a function called signUp which allows user to add to the collection. If user exists, inform the user that he has already an account. + + **b.** Create a function called signIn which allows user to sign in to the application 3. 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 + + **a.** Create a function called rateProduct which rates the product. + + **b.** Create a function called averageRating which calculate the average rating of a product 4. Create a function called likeProduct. This function will helps to like to the product if it is not liked and remove like if it was liked.