Ad
Code
Diff
  • const reverseStr=str=>[...str].reverse().join('');
    • const reverseStr = str => str.split.split('').reverse().join('');
    • const reverseStr=str=>[...str].reverse().join('');