Home / Javascript Tips Generated By ChatGPT / Reversing an Array in Javascript Reverse the elements of an array. Source Code let numbers = [1, 2, 3, 4, 5]; numbers.reverse(); console.log(numbers); // [5, 4, 3, 2, 1]