The reverse() method is used to reverse the order of elements in an array Note: This method will change the original array but not create a new array. example: var str = ['1','2','3']; document.write(a); Output: 3,2,1