paint-brush
Recursion: A Useful Look at How Recursive Functions Workby@oluwatobiss
311 reads
311 reads

Recursion: A Useful Look at How Recursive Functions Work

by Oluwatobi Sofela4mJanuary 7th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Recursion is the method by which a problem gets solved through iteration. A recursion function is a function that repetitively invokes itself infinitely (or until something stops it) A recursive function is different from an Immediately Invoking function Expression (IIFE) An IIFE automatically invokes themselves once, but a recursion is different. The code written to discontinue the reinvocation of a function is called a base case. Recursion code is the code that makesrecall itself repeatedly.

Company Mentioned

Mention Thumbnail
featured image - Recursion: A Useful Look at How Recursive Functions Work
Oluwatobi Sofela HackerNoon profile picture
Oluwatobi Sofela

Oluwatobi Sofela

@oluwatobiss

Oh, sweet programming, my interest is to make you sweeter for all.

Learn More
LEARN MORE ABOUT @OLUWATOBISS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Oluwatobi Sofela HackerNoon profile picture
Oluwatobi Sofela@oluwatobiss
Oh, sweet programming, my interest is to make you sweeter for all.

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
Oluwatobiss