Ad
Code
Diff
  • function reverseGear(word){
      return word.split('')
        .reverse()
        .join('');
    }
    • function reverseGear(word){
    • //put your code here
    • word.split("")
    • word.reverse()
    • word.join("")
    • return word
    • return word.split('')
    • .reverse()
    • .join('');
    • }