Anki flashcards

1. The Array#forEach accepts a function as an argument. What arguments can the function that is passed into Array#forEach accept?


2. What two arguments does the Array#reduce method accept?


3. The Array#reduce method accepts a function as an argument. What arguments should the function that is passed into Array#reduce accept?


4. The Array#filter method accepts a function as an argument. What type of data should the function that is passed into Array#filter return?


5. Describe what the Array#map method does.


6. Describe what the Array#filter does.