To reverse an array while iterating with a for loop in JavaScript, you can start from the last index of the array and move backwards to the first index. This can be achieved using a simple for loop and accessing the array elements in reverse order.
numbers.length - 1: This gives you the index of the last element in the array (because arrays are zero-indexed).
i--: In each iteration, we decrease the index by 1 to move backward through the array.
numbers[i]: Accesses the element at the current index i in the array.