Recursion
Describing an action in terms of itself
Why we use recursion
Tasks that are composed of similar subtasks
Shorter code (which may be easier)
Nested loops can be avoided.
See an example:
function recursion(){
// base case
if(anyBaseCase()){
return...
nikhilkumar007.hashnode.dev1 min read