Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

loop array javascript

var colors = ['red', 'green', 'blue'];
	
	colors.forEach((color, colorIndex) => {
     console.log(colorIndex + ". " + color); 
    });
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #loop #array #javascript
ADD COMMENT
Topic
Name
4+9 =