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...

Markdown supported · ⌘↵ to post
No responses yet.