There was an error while loading. Please reload this page.
You can use the .reverse() function to reverse the contents of an array.
var array = [1,2,3,4,5,6,7]; array = array.reverse();
New to Free Code Camp?
JS Concepts
JS Language Reference
Other Links