const arr = [1, 2, 3, 4, 5]; // Long-hand for (let i = 0; i < arr.length; i++) { const element = arr[i]; // ... } // Short-hand for (const element of arr) { // ... }