Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js for loop array

const cars = ["mazda", "BMW", "Volkswagen", "Audi"]
for (let i = 0; i < cars.length; i++) {
  text += cars[i];
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #loop #array
ADD COMMENT
Topic
Name
8+1 =