Skip to content

Commit 0dc837c

Browse files
authored
Update MAKEME.md
1 parent c66c624 commit 0dc837c

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Week3/MAKEME.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Call the function three times. The return values should be:
2525

2626
1. 15
2727
2. 24
28-
3. 36
28+
3. 33
2929

3030
It should look a little like this:
3131

@@ -48,7 +48,7 @@ Write a function called `removeDuplicates`, that takes in an array as an argumen
4848
const letters = ['a', 'b', 'b', 'c', 'd', 'a', 'e', 'f', 'f', 'c', 'b'];
4949
```
5050

51-
The function should modifies the original array: it should remove duplicate letters and `return` the result.
51+
The function should create a copy of the original and return a modified version. This version should only include original letters, no duplicates! Use an array method to perform the operation.
5252

5353
The end result should be:
5454

@@ -107,13 +107,15 @@ Write a function that takes 4 arguments.
107107
- A callback that executes if the number is divisible by 3
108108
- A callback that executes if the number is divisible by 5
109109

110-
The function should first generate an array containing values from start value to end value (inclusive).
110+
The function should first generate an array, called `numbers`, containing values from start value to end value (inclusive).
111111

112-
Then the function should take the newly created array and iterate over it, and calling the first callback if the array value is divisible by 3.
112+
Then the function should take the `numbers` array and iterate over it.
113113

114-
The function should call the second callback if the array value is divisible by 5.
114+
If the array value is divisible by 3, call `threeCallback`. The return value of the callback should be "Number {NUM} is divisible by 3!".
115115

116-
Both functions should be called if the array value is divisible by both 3 and 5.
116+
If the array value is divisible by 5, call `fiveCallback`. The return value of the callback should be "Number {NUM} is divisible by 5!".
117+
118+
Both functions should be called if the array value is divisible by both 3 and 5.
117119

118120
Here is a starter template:
119121

@@ -127,7 +129,6 @@ function threeFive(startIndex, stopIndex, threeCallback, fiveCallback) {
127129
threeFive(10, 15, sayThree, sayFive);
128130

129131
// Should create an array [10,11,12,13,14,15]
130-
// and call sayFive, sayThree, sayThree, sayFive
131132
```
132133

133134
## **3. Code along**

0 commit comments

Comments
 (0)