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

Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Clarify homework week 2 exercise 5 #178

Merged
merged 1 commit into from
Sep 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Week2/MAKEME.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ There are 3 different types of drinks:
const drinkTypes = ['cola', 'lemonade', 'water'];
```

2. Create a loop that runs 5 times. On each iteration, push a drink into the `drinkTray` variable.
3. However, if there are already two instances of a `drinkType` then start with the next drink in the array.
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.
3. If there are already two instances of a `drinkType` then start with the next drink in the array.
4. Your `drinkTray` should contain 2 cola, 2 lemonade and 1 water.
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!")
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!")

## **3. Code along**

Expand Down