JavaScript - Parse array items in reverse order
Posted: 01 Feb 2015, 13:57
How can I parse the array items in reverse order, in JavaScript?
I have a Div and an array with numbers in JS code, like this:
In #dv1 I want to add: 9, 56, 8, 2, 13
Thanks.
I have a Div and an array with numbers in JS code, like this:
Code: Select all
<div id="dv1"></div>
<script>
var ary = [13, 2, 8, 56, 9];
// here get each ary item in reverse order: 9, 56, 8, 2, 13
</script>
Thanks.