Question from the Javascript test

Reverse the order of elements in an array in JavaScript