how to loop elements in javascript for of loop code example
Example: how to loop elements in javascript for of loop
const fakeImages = document.querySelectorAll(".fake-image"); for (const fakeImage of fakeImages) { console.log('fakeImage: ', fakeImage); }