I\'m a pretty experienced frontend engineer with a weak CS background. I\'m trying to get my head around the concept of recursion. Most of the examples and purported explana
function recurse(s) {
if (s.length == 0) {
return '' // stopping condition
} else { // return last char + result of function called with chars up to last char
return s.substring(s.length, s.length -1) + recurse(s.substring(0, s.length -1))
}
}