DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
iterate through array js
var
arr
=
[
"f"
,
"o"
,
"o"
,
"b"
,
"a"
,
"r"
]
;
for
(
var
i
in
arr
)
{
console
.
log
(
arr
[
i
]
)
;
}
PREVIOUS
NEXT
Tagged:
#iterate
#array
#js
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit