__________ can be used to execute a callback on every element in the array, creating a new array with the results.

  • map
  • forEach
  • reduce
  • filter
The forEach method can be used to execute a callback function on each element of an array. However, it doesn't create a new array with the results.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *