📅  最后修改于: 2022-03-11 15:04:13.690000             🧑  作者: Mango
// New For loop available after ES2015
function reverse(str){
let reversed = '';
for (let character of str){
reversed = character + reversed;
}
return reversed;
}