SOURCE

var str = "abcde";
var arr = str.split("");
arr = arr.reverse();
document.write(str+'<br/>');
document.write(arr.join(""));
console 命令行工具 X clear

                    
>
console