function reBack(str){
var arr = str.split("");
var arr1 = [];
for(var i =arr.length-1; i>=0; i--){
arr1.push(arr[i])
}
console.log(arr1.join(""));
}
reBack('my name is swb!')
给定一串字符串,倒序打印出 function reBack(str){ var arr = str.split(""); var arr1 = []; for(var i =arr.length-1; i>=0; i--){ arr1.push(arr[i]) } console.log(arr1.join("")); } reBack('my name is swb!')...