How to use Recursion to Traverse JSON Objects and the Filesystemby@wagslane
5,646 reads
5,646 reads

How to use Recursion to Traverse JSON Objects and the Filesystem

by Lane Wagner3mSeptember 10th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

How to use Recursion to Traverse JSON Objects and the Filesystem. Recursion is a process in which a function calls itself. It is important to be able to recognize when a problem is best solved recursively. All iterative programs can be written using recursion, and all recursion programs are written using iteration. This is because it is much simpler to write an interpreter that can handle recursion than it is to write one that supports loops. The primary reason to choose recursion over iteration is simplicity.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to use Recursion to Traverse JSON Objects and the Filesystem
Lane Wagner HackerNoon profile picture
Lane Wagner

Lane Wagner

@wagslane

Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

About @wagslane
LEARN MORE ABOUT @WAGSLANE'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Lane Wagner HackerNoon profile picture
Lane Wagner@wagslane
Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
L O A D I N G
. . . comments & more!