const arr = [1, 3, 5, 9, 11, 12]; for (let i = 0; i < arr.length - 1; i++) { console.log(arr[i], arr[i + 1]); }