Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

for of loop

Create a loop that runs through each item in the fruits array.

var fruits = ['Apple', 'Banana', 'Orange']

for (x of fruits){
	console.log(x)
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
7+1 =