JavaScript Buat gambar

// to create an image, use the Image class
const image = new Image();

// you can give an image a source (url/dataurl)
image.src = "https://upload.wikimedia.org/wikipedia/commons/a/a0/W3Schools_logo.svg";

// to create an image element, use document.createElement(element)
const img = document.createElement("img");
img.src = "https://upload.wikimedia.org/wikipedia/commons/a/a0/W3Schools_logo.svg";

document.body.appendChild(img);
MattDESTROYER