JavaScript reverse function is used to reverse the array. arr.reverse() will reverse the array values. See the code snippet:
arr.reverse()