You can see a working example at the URL below which shows a recursive function to display bookmarks and their children.
Is recursive functions and Looping one and the same thing.
A loop will continue until a criteria is met, generally either a counter, a condition, or when each of the items in a group is processed.
A recursive function is a technique for iterating over an operation by having a function call itself repeatedly until it arrives at a result.
I'm sure there are better explanations but that's that basic difference.