obraz JavaScript do zmiennej
var img1 = document.createElement("img");
img1.src = "http://path/to/image";
Famous Fox
var img1 = document.createElement("img");
img1.src = "http://path/to/image";
<img id="score1" class="hidden">
<img id="score2" class="hidden">
<img id="score3" class="hidden">
.hidden { display: none; }
var score2Element = document.getElementById("score2");
score2Element.classList.remove("hidden");
document.body.appendChild(img1);
document.querySelector(".some-class").appendChild(img1);
document.getElementById("someId").appendChild(img1);