forEach arguments

Report a typo

Match the forEach arguments with their definitions in the following function:

array.forEach(function showName(name, i, data) {
  ...
}, a);
Match the items from left and right columns
showName
a
name
data
i
custom value which can be used as this in the callback function
the index of the current element
the current element we are processing
a function that we call for each element
the array of elements
___

Create a free account to access the full topic