+ 1
is there any foreach loop in javascript??
6 ответов
+ 6
you can do something like this:
var myList=[1,2,3,4,5,6,7]
for(var num in myList){
document.write(num)
}
+ 4
array.forEach(function(){code;});
+ 3
✌
0
how do we access any element of array here??
0
like in python we take another variable which iterates over all elements
0
thanks burey