How do you reverse the order of items in an array?
Anónimo
Do for-loop with range of loop = array.length/2 Store left and right array values into temp variables. Set right = leftTemp and left = rightTemp Index of left element = i Index of right element = array.length-i-1