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