Arrays have a method reverse, which changes the array by inverting the order in which its elements appear. For this exercise, write two functions, ... ... <看更多>
The function name reverse() is quite general. That could refer to reversing an array, string, or whatever. A better name might be reverseArray() ... ... <看更多>