javascript array each item element code example Example: mdn foreach Click to copyarr.forEach(callback(currentValue [, index [, array]])[, thisArg])