Ad
Code
Diff
  • const reverseGear=(word)=>[...word].reduce((a,b)=>b+a,'')
    • function reverseGear(word){
    • return word.split('')
    • .reverse()
    • .join('');
    • }
    • const reverseGear=(word)=>[...word].reduce((a,b)=>b+a,'')