var m = [...]
for (var x=0; x< m.length; x++)
{...}
for (let i = 0; i < arr.length; i += 1) {
// some code
}
for (let i = 0, length = arr.length; i < length; i += 1) {
// some code
}
for (let i = arr.length; i > 0; i -= 1) {
// some code
}
let i = 0;
while (i < arr.length) {
// some code
i++;
}
Array.prototype.forEach.call(arr, item => {
// some code
});
for (let item of arr) {
// some code
}