I am saving some data in order using arrays, and I want to add a function that the user can reverse the list. I can\'t think of any possible method, so if anybo
array
function reverseArray(arr) { let reversed = []; for (i = 0; i < arr.length; i++) { reversed.push((arr[arr.length-1-i])) } return reversed; }