reverse i order table length js code example Example: reverse array javascript var rev = arr.reverse();