結果 : how to reverse an array in javascript without using reverse function