Create an image element using the createElement() method on the document object.
const imgElement = document.createElement('img');
imgElement.src = "image URL";
document.body.appendChild(imgElement);
const imgElement = new Image(100, 200);
imgElement.src = "image URL";
document.body.appendChild(imgElement);