const gridContainer = document.querySelector('.grid-container'); for (let i = 1; i < 101; i++) { const img = document.createElement('img'); img.src = `path-to-img/seperate-${i}.png`; gridContainer.append(img); }