for (const el of els) {} els.forEach((el, i) => {}); els.forEach((el, i, array) => {}); els.forEach(function(el, i) {}); els.forEach(function (el, i, array) {}); els.forEach(f); els.forEach(function(el) {}, thisArg, unexpectedExtraParam);