DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
loop over an array
fruits.forEach(function(item, index, array) { console.log(item, index) }) // Apple 0 // Banana 1
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#loop
#array
ADD COMMENT
Topic
COMMENT
Name
5+7 =
Submit