🔧 enumerate questions to improve readability.

pull/685/head
Menai Ala Eddine 3 years ago committed by GitHub
parent ffd79e248d
commit 99e899ea89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -579,13 +579,17 @@ console.log(copyPerson.hasOwnProperty('score'))
] ]
``` ```
Imagine you are getting the above users collection from a MongoDB database. 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 **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. 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. 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.

Loading…
Cancel
Save