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

Skip to content

Commit 7ed1c32

Browse files
authored
Update homework.md
The students got confused by this question, in fact the homework assignment doesn't totally make sense. Why are we getting user HackYourFuture-CPH#1 every time? I don't know the best way to write the question, but I suggested at least 1 improvement. Please ping me if you want to come up with something better.
1 parent 8baf51e commit 7ed1c32

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)