js how to add image in a document create div code example
Example: javascript appendchild image node
let img = document.createElement("img");
img.src = source.getAttribute('data-image');
document.getElementByID("target").appendChild(img);
let img = document.createElement("img");
img.src = source.getAttribute('data-image');
document.getElementByID("target").appendChild(img);