const images = document.querySelectorAll('img'); const srcList = []; images.forEach(img => { srcList.push(img.src); }); console.log(srcList);