const reverseString = (str) => str.split('').reverse().join(''); const reverse = reverseString('javascript'); console.log(reverse); // tpircsavaj