Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
1+5 =