//翻转数组
var numbers = [4,7,9,3]; //生成一个新的数组,数组[3,9,7,4]
var newArray = [];
for(var i = numbers.length-1; i>=0;i--){
newArray[newArray.length] = numbers[i]
}
console.log(newArray);