The function recursively calls itself while removing the first character of the string until it reaches the base case. O(n) due to the recursion stack.
Traversy JS Challenges, Data Structures, and Algorithms This is a sandbox for my upcoming JavaScript challenges, data structures, and algorithms course. Just about all of the concepts that are ...