Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to loop elements in javascript for of loop

const fakeImages = document.querySelectorAll(".fake-image");	for (const fakeImage of fakeImages) {	  console.log('fakeImage: ', fakeImage);	}
Source by itnext.io #
 
PREVIOUS NEXT
Tagged: #loop #elements #javascript #loop
ADD COMMENT
Topic
Name
8+6 =