Ad
Code
Diff
  • function reverseGear(word){
      if (str === "")
        return "";
      return reverseString(str.substr(1)) + str.charAt(0);  
    }
    • function reverseGear(word){
    • if (str === "")
    • return "";
    • else
    • return reverseString(str.substr(1)) + str.charAt(0);
    • return reverseString(str.substr(1)) + str.charAt(0);
    • }