Name

reverse() — NN 3 IE J2 ECMA 1

Synopsis

Reverses the order of items in the array and returns a copy of the array in the new order. The original order of the array is changed after this method executes.

Returned Value

An Array object.

Parameters

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.