Courses / JavaScript
22. Array.prototype.reverse()
Reverses the elements of an array in place.
1 min read Chapter 22 of 99
JavaScript
Array.prototype.reverse()
Array.prototype.reverse() reverses the order of elements in an array.
"I need to display my list in reverse order for better readability."
Array.prototype.reverse() is a method that modifies the original array by reversing the order of its elements in place.
"I need to display my list in reverse order for better readability."
Array.prototype.reverse() is a method that modifies the original array by reversing the order of its elements in place.