Learn JavaScript Recursion

The Complete Guide:

Thread 🧵

Recursion is a process of calling itself. A function that calls itself is called a recursive function.

syntax -
A recursive function must have a condition to stop calling itself. Otherwise, the function is called indefinitely.

A simple example of a recursive function would be to count down the value to 1.
Example 2: Find Factorial
If you enjoyed reading this thread, please do the following:
1. Like the thread❤️
2. Retweet the first tweet.🔃
3. Follow me and enable notifications: ✅
@CodeMarch
Thank you for reading all the way through.
Download our free JavaScript Resources ebook Here:

https://t.co/miV7BM7fD0

More from Catagory jee

A thread 🧵on Resources-for-preparation-Of-Placements (Lecture video links)

**Programming Language Used : C++**

- Programming in C++ - (
https://t.co/gTcLJEMzwx)

- TakeUForward - ( https://t.co/udOwgbpG6O )

- CodeHelp - ( https://t.co/iph5urO1Q3 )

- Ayushi Sharma - ( https://t.co/pJUyl8ViF7 )

- COMPETITIVE PROGRAMMING -

**Programming Language Used : JAVA**

- Programming in JAVA - (https://t.co/fUMecrGVwY)

- Data Structure and Algorithams
- Kunal Kushwaha - (https://t.co/Pkvr5ZMcJ7)
- Pepcoding - (https://t.co/yNoYkSTTfv)
- Durga Sir -

- Anuj Bhaiya - (https://t.co/jHFrsvnwCy)

**Programming Language Used : Python**

- Programming in Python - (https://t.co/6zz3S1MpUO)

- DSA in Python - (https://t.co/vQ1EteJGnm)

- DS-ALGO - (https://t.co/KXE7NZf0ZD)

- Tech With Tim -

- Python Engineer - (https://t.co/VmGtEjiBVE)
**Placement Series**

- C++ - (https://t.co/nCnLHi00BK)

- JAVA - (https://t.co/Pkvr5Zu3uZ)

- JAVA - (https://t.co/pScvzpmlYu)

- PYTHON -

You May Also Like

The first ever world map was sketched thousands of years ago by Indian saint
“Ramanujacharya” who simply translated the following verse from Mahabharat and gave the world its real face

In Mahabharat,it is described how 'Maharishi Ved Vyasa' gave away his divine vision to Sanjay


Dhritarashtra's charioteer so that he could describe him the events of the upcoming war.

But, even before questions of war could begin, Dhritarashtra asked him to describe how the world looks like from space.

This is how he described the face of the world:

सुदर्शनं प्रवक्ष्यामि द्वीपं तु कुरुनन्दन। परिमण्डलो महाराज द्वीपोऽसौ चक्रसंस्थितः॥
यथा हि पुरुषः पश्येदादर्शे मुखमात्मनः। एवं सुदर्शनद्वीपो दृश्यते चन्द्रमण्डले॥ द्विरंशे पिप्पलस्तत्र द्विरंशे च शशो महान्।

—वेद व्यास, भीष्म पर्व, महाभारत


Meaning:-

हे कुरुनन्दन ! सुदर्शन नामक यह द्वीप चक्र की भाँति गोलाकार स्थित है, जैसे पुरुष दर्पण में अपना मुख देखता है, उसी प्रकार यह द्वीप चन्द्रमण्डल में दिखायी देता है। इसके दो अंशो मे पीपल और दो अंशो मे विशाल शश (खरगोश) दिखायी देता है।


Meaning: "Just like a man sees his face in the mirror, so does the Earth appears in the Universe. In the first part you see leaves of the Peepal Tree, and in the next part you see a Rabbit."

Based on this shloka, Saint Ramanujacharya sketched out the map, but the world laughed