What is recursion in Javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is recursion in Javascript

8th Jul 2023, 6:04 PM
Ayato Sakamaki
Ayato Sakamaki - avatar
1 Answer
+ 5
Recursion is a problem-solving technique in programming. A recursive function is a function that calls itself somewhere within the body of the function. Below is a basic example of a recursive function. function recursiveFunc() { // some code here... recursiveFunc() }
8th Jul 2023, 6:40 PM
JaScript
JaScript - avatar