reverse() method reverses the order of the elements of an array −− the first becomes the last, and the last becomes the first.