Ad
Code
Diff
  • const reverseGear=(w)=>[...w].reverse().join("")
    • const reverseGear=(word)=>[...word].reduce((a,b)=>b+a,'')
    • const reverseGear=(w)=>[...w].reverse().join("")