📅  最后修改于: 2022-03-11 15:04:25.143000             🧑  作者: Mango
const str = 'JavaScript is awesome';
function reverseAString(str) {
return str.split('').reverse().join('');
}
console.log(`Reversed string is: ${reverseAString(str)}`);