Recursion
A function that calls itself, typically with a guard condition that prevents infinite execution.
Below is an example of a recursive function in javascript (a common factorial example):
|
|
A function that calls itself, typically with a guard condition that prevents infinite execution.
Below is an example of a recursive function in javascript (a common factorial example):
|
|