Language GuideBuilt-in TypesArrayMethodsfor_eachOn this pagefor_eachIterate over the array. [2,4,6].for_each((thisElement) => console.log(thisElement)); // console.logs 2, 4, and 6 Syntax for_each(callback) Returns An undefined. Notes The callback is expected to contain ONE parameter. You CANNOT reassign the element from within the callback.