JavaScript TypedArray reverse() MethodThe JavaScript reverse() method is used to reverse the array. The first element of the array becomes the last element of the array and vice versa. Syntax:Parameters:No Parameters. Return value:Return the reversed original array. Browser Support:
Example 1JavaScript reverse() Method Test it NowOutput: 4,5,2,1 Example 2JavaScript reverse() Method Test it NowOutput: RDBMS,C++,C,Java
Next TopicJavaScript TypedArray Object
|