Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript loop through array

const array = [1, 2, 3, 4];

for(num of array) {
  console.log(num); 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #loop #array
ADD COMMENT
Topic
Name
4+2 =