Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create a loop that runs through each item in an array

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.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #create #loop #runs #item #array
ADD COMMENT
Topic
Name
3+8 =