how to get an image from html and javascript code example
Example: how to set diferent images in html through js
<div id="x"></div>
<script>
var img = document.createElement("img");
img.src = "image.png";
var src = document.getElementById("x");
src.appendChild(img);
</script>