10 ms·
for (x in [6,1,6,2,6,3]) { console.log(x); } Please run this in your browser console and tell me if it iterates over the elements of the array.
by zkldi 5y ago
for (x in [6,1,6,2,6,3]) {
console.log(x);
}
Please run this in your browser console and tell me if it iterates over the elements of the array.