The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Intro to Recursion - The Solution

Intro to Recursion - The Solution

4:39
In this lesson we manage to remove all of the nested loops that helped us towards a partial solution in the first lesson. We create a function `getTasks`, that can, only under certain conditions, call itself. This is the basis of recursion and often leads to cleaner, shorter code that can handle more dynamic input.
Watch this lesson now
Avatar
egghead.io

In this lesson we manage to remove all of the nested loops that helped us towards a partial solution in the first lesson. We create a function getTasks, that can, only under certain conditions, call itself. This is the basis of recursion and often leads to cleaner, shorter code that can handle more dynamic input.

Avatar
Jaime

The attached JSBin is not working. It is saying a JS BIN Pro Account is required.

In reply to egghead.io
Avatar
beckinfonet

Shane Osborne is a great instructor, but why did he have to chose a horrible and confusing example to explain recursion? For some of the people like me who just started to learn recursion, he could have chosen some words that make more sense. I watched it 5 times, I keep thinking why on earth did he choose these words as an example. But thanks anyways for the explanation.

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?