20. MEDIUM | Looping through Arrays in JavaScript
1. forEach()
Executes a provided callback function once for each element in an array.
Syntax
// Syntax using function declaration
array.forEach(function(currentElement, currentIndex, array) {
//
javascript-topicwise-notes.hashnode.dev7 min read