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
{{ message }}
Repository navigation
Commit fe08deb
Browse filesBrowse the repository at this point in the historyBrowse files
// Now that you have used .forEach(), .map(), .filter(), and .reduce(). I want you to think of potential problems you could solve given the data set and the 5k fun run theme. Try to create and then solve 3 unique problems using one or many of the array methods listed above.
481
481
482
482
// Problem 1
483
+
// find the email of "Vida"
484
+
runners.forEach(ele=>{
485
+
if(ele.first_name==="Vida"){
486
+
console.log(ele.email);
487
+
}
488
+
});
483
489
484
490
// Problem 2
485
-
491
+
// filter all companies with names starting with "J"
Copy file name to clipboardExpand all lines: assignments/callbacks.js
+24-5Lines changed: 24 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
// Create a higher order function and invoke the callback function to test your work. You have been provided an example of a problem and a solution to see how this works with our items array. Study both the problem and the solution to figure out the rest of the problems.
0 commit comments