Updated Space

pull/243/head
JoemonReflections 3 years ago committed by GitHub
parent 180bcbbd5a
commit fc457f3e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2133,10 +2133,12 @@ const products = [
```
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.
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

Loading…
Cancel
Save