how to display info in a reverse loop javascript code example Example: reversing an array in js var arr=[1,2,5,6,2] arr.reverse()