Coding & Programming > JavaScript Forum

Recursion

(1/1)

chinmay.sahoo:
Recursion is an advanced topic, and you can certainly write JavaScript without using it. However in many situations, including some of the more
interesting examples later in this book, recursion is useful. A recursive function is usually one that calls itself. It is similar to a loop with or without a
terminating condition. Some programming functions lend themselves to recursive algorithms, such as the factorial one. The factorial is a classic
recursive algorithm because it is very obvious. A simple mathematical definition of the factorial operation is:


--- Code: ---Only registered users can see contents. Please click here to

raghuramastrologer:
Recursion is the process which comes into existence when a function calls a copy of itself to work on a smaller problem. Any function which calls itself is called recursive function, and such function calls are called recursive calls.

Arunpolishetti:
Can anyone help me to create a contact form for my wordpress site?

Navigation

[0] Message Index

Go to full version