JavaScript翻转字符串

const reverse = str => str.split('').reverse().join('');
console.log( reverse('hello world') )  // dlrow olleh