DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Iterate Through an Array with a For Loop
var arr = [10, 9, 8, 7, 6]; for (var i = 0; i < arr.length; i++) { console.log(arr[i]); }
Source by www.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
#Iterate
#Through
#Array
#For
#Loop
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit