Array iteration using forEach()

70.0% Acceptance

In this lab, you will be implementing the Array.prototype.forEach() function. The forEach() method executes a provided function once for each array element. Your task is to create and export a forEach function, which will take an array and a callback function as arguments, iterating through the array and executing the callback for each element. The callback should receive the current element, the index of the element, and the original array as its arguments.