We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 447090d commit aba6b84Copy full SHA for aba6b84
recursive-string-reverse.js
@@ -0,0 +1,6 @@
1
+const reverseString = (str) => {
2
+ if(str.length === 0){
3
+ return "";
4
+ }
5
+ return reverseString(str.substr(1)) + str[0];
6
+}
0 commit comments