JavaScript Array toReversed() Method Last Updated : 15 Mar, 2024 Comments Improve Suggest changes Like Article Like Report The toReversed() method in Javascript arrays returns a new array with the elements in reversed order and the original array remains unaffected. The toReversed() method, introduced in ECMAScript 2023, offers a way to reverse the order of elements in an array. Unlike the sort() method, it creates a new array with the elements arranged in reverse order. This method preserves the original array, ensuring it remains unmodified. Syntax:It will not take any parameter and return the array with elements in reverse order. let result_array = actual_array.toReversed()Example: JavaScript program to reverse the elements in an array JavaScript let actual_array = [60, 78, 90, 34, 67]; console.log("Existing Array: ", actual_array); let result_array = actual_array .toReversed(); console.log("Final Array: ", result_array); Output: Existing Array: [60, 78, 90, 34, 67]Final Array: [67, 34, 90, 78, 60] Comment More infoAdvertise with us Next Article JavaScript Array toReversed() Method sravankumar_171fa07058 Follow Improve Article Tags : JavaScript Web Technologies Similar Reads JavaScript Array reverse() Method The JavaScript Array reverse() method reverses the order of the elements in an array in place. The first array element becomes the last, and the last element becomes the first, and so on.It modifies the original array and returns a reference to the reversed array. We can also use the Array.toReverse 3 min read Reverse an Array in JavaScript Here are the different methods to reverse an array in JavaScript1. Using the reverse() MethodJavaScript provides a built-in array method called reverse() that reverses the elements of the array in place. This method mutates the original array and returns the reversed array.JavaScriptlet a = [1, 2, 3 3 min read JavaScript typedArray.reverse() Method The typedArray.reverse() is an inbuilt function in JavaScript which is used to reverse the given typedArray elements i.e, first element becomes the last and vice versa. Syntax: typedArray.reverse(); Parameter: It does not accept any parameters. Return value: It returns the new reversed typedArray. E 1 min read JavaScript TypedArray.prototype.toReversed() Method In JavaScript, Array.prototype.toReversed() method is used to reverse an array. It returns a new array that has elements in reverse order. Syntax :toReversed()Parameter:This method does not accept any parameter. Return Value:This method returns a newly formed reverse array. Example: This example sho 1 min read Reverse an Array in Java Reversing an Array is a common task in every programming language. In Java, there are multiple ways to reverse an array. We can reverse it manually or by using built-in Java methods. In this article, we will discuss different methods to reverse an array with examples.Let us first see the most common 4 min read Like