iterating over an array of images then inserting them into an html document
snippet in html

iterating over an array of images then inserting them into an html document

user2934

var elements = document.querySelectorAll("a");
for (var i= 0; i < elements.length; i++) {
    elements[i].style.color = "red";
}