Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 271d98b

Browse files
author
Ditlev Tøjner
authored
Merge pull request HackYourFuture-CPH#144 from aleks-hyf/patch-7
Update homework.md
2 parents 8baf51e + 7ed1c32 commit 271d98b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript3/week3/homework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class ShoppingCart {
118118
// Implement functionality here
119119
}
120120

121-
getUser() {
121+
getUser(user) {
122122
// Implement functionality here
123123
}
124124
}
@@ -139,7 +139,7 @@ Create the functionality for the `ShoppingCart` class.
139139
- `getTotal` should get the total price of the products in the `shoppingcart`.
140140
- `renderProducts` should render the products to html. You decide what to show and how.
141141
- `searchProduct` should return an array of product that match the `productName` parameter
142-
- `getUser` should return a promise with the data from this api: https://jsonplaceholder.typicode.com/users/1
142+
- `getUser` should return a promise with the data from this api: https://jsonplaceholder.typicode.com/users/1 (replace '1' with correct user).
143143

144144
### Part 2
145145

0 commit comments

Comments
 (0)