Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Js loop array

var numbers = [22, 44, 55, 66, 77, 99];
for (var i = 0; i < numbers.length; i++) {
    var num = numbers[i]
    console.log(num)
}
//Output: 22,44,55 66 77 99
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Js #loop #array
ADD COMMENT
Topic
Name
8+7 =