what does the reverse javascript do code example Example: reverse array javascript var rev = arr.reverse();