Обратная строка

const reverseString = str => […str].reverse().join('');
reverseString('foobar'); // 'raboof'
Текст и строки JavaScript