[JavaScript] Recursion
\nvar convertToBase7 = function(num) {\n    if(num < 0) return \'-\' + convertToBase7(num*(-1));\n    if(num < 7) return num.toString();\n    return convertToBa
```\nvar convertToBase7 = function(num) {\n    if(num < 0) return \'-\' + convertToBase7(num*(-1));\n    if(num < 7) return num.toString();\n    return convertToBase7(Math.floor(num/7)) + (num%7).toString();\n};\n```
['JavaScript']