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 kitt.lewagon.com #
 
PREVIOUS NEXT
Tagged: #javascript #loop #array
ADD COMMENT
Topic
Name
3+2 =