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

Skip to content

Commit cbee079

Browse files
authored
Merge pull request HackYourFuture#178 from HackYourFuture/nudge-q5
Clarify homework week 2 exercise 5
2 parents 627d4c8 + 0d52c73 commit cbee079

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Week2/MAKEME.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ There are 3 different types of drinks:
8585
const drinkTypes = ['cola', 'lemonade', 'water'];
8686
```
8787

88-
2. Create a loop that runs 5 times. On each iteration, push a drink into the `drinkTray` variable.
89-
3. However, if there are already two instances of a `drinkType` then start with the next drink in the array.
88+
2. Create a loop that runs 5 times. On each iteration, push a drink into the `drinkTray` variable. The `drinkTray` can only hold at most two instances of the same drink type, for example it can only hold 2 colas, 2 lemonades, 2 waters.
89+
3. If there are already two instances of a `drinkType` then start with the next drink in the array.
9090
4. Your `drinkTray` should contain 2 cola, 2 lemonade and 1 water.
91-
5. Log to the console: "Hey guys, I brought a [INSERT VALUES FROM ARRAY]!" (For example: "Hey guys, I brought a cola, lemonade, cola, water, lemonade!")
91+
5. Log to the console: "Hey guys, I brought a [INSERT VALUES FROM ARRAY]!" (For example: "Hey guys, I brought a cola, cola, lemonade, lemonade, water!")
9292

9393
## **3. Code along**
9494

0 commit comments

Comments
 (0)