How to print this code to the website not to de console?

But now I been trying to do it with images but for some reason is not working
html

<div id="arrayImages"></div>

js

var images = ["1.png", "2.png", "3.png"];

for (var i = 0; i < images.length; i++) {
  document.getElementById("arrayImages").src = images.src;
}