cara membalikkan string di javascript menggunakan fungsi pengurangan

const reverseString = (str) => {
    return str.split('').reduce((acc, currItem)=> currItem + acc, '');//acc is accumulator
};

reverseString('hello world!');
// => !dlrow olleh
Ernest Adonu