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 www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
3+1 =