You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
52
52
53
53
The end result should be:
54
54
@@ -107,13 +107,15 @@ Write a function that takes 4 arguments.
107
107
- A callback that executes if the number is divisible by 3
108
108
- A callback that executes if the number is divisible by 5
109
109
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).
111
111
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.
113
113
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!".
115
115
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.
117
119
118
120
Here is a starter template:
119
121
@@ -127,7 +129,6 @@ function threeFive(startIndex, stopIndex, threeCallback, fiveCallback) {
0 commit comments