Recursion
Last updated
What is Recursion?
One of the most powerful and elegant concept of functions, recursion is when a function invokes itself. Such a function is called a recursive function. As recursion happens, the underlying code of the recursive function gets executed again and again until a terminating condition, called the base case, gets fulfilled. As you dive into the world of algorithms, you'll come across recursion in many many instances.
Free resources to learn Recursion
- ArticleRecursion and Stack
- ArticleJavaScript Function Recursions - CodeGuage
- ArticleRecursion - MDN
More in stage 12: Strict Mode
Recursion: common questions
Can I learn Recursion in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Recursion in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Recursion tutorial for beginners?
It is lesson 88 of 124 in the free JavaScript roadmap, in stage 12, Strict Mode. If you are new to JavaScript, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.