reverse() Function

Returns an array in reverse order.

Syntax

reverse( array )

array: (Any Type Array) The array to modify.

Returns

Any Type Array

Examples

You can experiment with this function in the test box below.

Test Input

reverse({10, 20, 30, 40}) returns 40, 30, 20, 10

FEEDBACK