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
Copy file name to clipboardExpand all lines: challenges/functions.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
// Step 1: Create a higher-order function that will accept 3 parameters. The first two can take any argument. The last is your callback. This function should return your callback that passed the first two parameters as its argument.
5
5
6
-
/* Step 2: Create several functions.
6
+
/* Step 2: Create several functions that you will callback with the previous higher order function.
7
7
The first will return the sum of two numbers.
8
8
The second will return the product of two numbers.
9
9
The third will return the modulus of the two numbers.
// Step 1: Create a new array that will contain all games. Once you have it made, sort it ascending[A-Z]. Log the result. Solve two ways:
@@ -53,7 +50,7 @@ const gameCharacters = [
53
50
// Map or forEach
54
51
55
52
56
-
// Step 3: Find out how many sub enemies are in each character. Display the number as well as the array. Solve two ways
53
+
// Step 3: Find out how many sub enemies are in each character. Display the number as well as the array. After you have displayed it, then take out the first sub enemy of each character and return the new results. Solve two ways
0 commit comments