Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
The reverse() method returns the reference to the same array
The reverse() method returns reference to the original array, so mutating the returned array will mutate the original array as well.
The reverse() method returns the reference to the same array
The reverse() method returns reference to the original array, so mutating the returned array will mutate the original array as well.
The reverse() method returns the reference to the same array
The reverse() method returns reference to the original array, so mutating the returned array will mutate the original array as well.
The reverse() method returns the reference to the same array
The reverse() method returns reference to the original array, so mutating the returned array will mutate the original array as well.
The reverse() method returns the reference to the same array
The reverse() method returns reference to the original array, so mutating the returned array will mutate the original array as well.
Calling reverse() on non-array objects
The reverse() method reads the length property of this. It then visits each property having an integer key between 0 and length / 2, and swaps the two corresponding indices on both ends, deleting any destination property
TypedArray.prototype.reverse()
This page was last modified on Jul 20, 2025 by MDN contributors.