crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Array.forEach()</h2> <p>Calls a function once for each array element.</p> <p id="test"></p> <script> var txt = ""; var numbers = [45, 4, 9, 16, 25]; numbers.forEach(myFunction); document.getElementById("test").innerHTML = txt; function myFunction(value, index, array) { txt = txt + value + "<br>"; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBBcnJheS5mb3JFYWNoKCk8L2gyPg0KDQo8cD5DYWxscyBhIGZ1bmN0aW9uIG9uY2UgZm9yIGVhY2ggYXJyYXkgZWxlbWVudC48L3A+DQoNCjxwIGlkPSJ0ZXN0Ij48L3A+DQoNCjxzY3JpcHQ+DQp2YXIgdHh0ID0gIiI7DQp2YXIgbnVtYmVycyA9IFs0NSwgNCwgOSwgMTYsIDI1XTsNCm51bWJlcnMuZm9yRWFjaChteUZ1bmN0aW9uKTsNCmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJ0ZXN0IikuaW5uZXJIVE1MID0gdHh0Ow0KDQpmdW5jdGlvbiBteUZ1bmN0aW9uKHZhbHVlLCBpbmRleCwgYXJyYXkpIHsNCiAgdHh0ID0gdHh0ICsgdmFsdWUgKyAiPGJyPiI7IA0KfQ0KPC9zY3JpcHQ+DQoNCjwvYm9keT4NCjwvaHRtbD4=