JavaScript Array forEach()
The JavaScript array forEach() method is used to invoke the provided function once for each element of an array. Syntax: array.forEach (callback (currentvalue, index, arr), thisArg) Parameters: callback: It represents the method to test the condition. It is required. currentValue: It represents the array’s current element. It is required. index: Current element index. It is … Read more