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.