Check this code:
aTest = function () { ["a", "b", "c", "d"].forEach(function (event) {alert(event)} ) } aTest();
After executing it, it will popup "a", "b", "c", "d"
Check this code:
aTest = function () { ["a", "b", "c", "d"].forEach(function (event) {alert(event)} ) } aTest();
After executing it, it will popup "a", "b", "c", "d"