The original fibre-tipped pen. Perfect for graphics and illustrations. Non-permanent water-based ink. For office, college or home. Approx line width up to 2.0mm. Made from 83% recycled material. (black, red, blue and green only - excludes the ink)
Recursion is a way of programming or coding a problem, in which a function calls itself one or more times in its body. Usually, it is returning the return value of this function call. If a function definition fulfils the condition of recursion, we call this function a recursive function.
Recursion is one of the initial courses we take in every CS university, with the most used example being the Fibonacci sequence: let recursive = (n) => { if(n <= 2) { return 1 } else { return recursive(n - 1) + recursive(n - 2); } }; This works great in most of the languages we've been taught, but with asynchronous environments such as Node.js, things are getting tricky. Using asynchronous functions, we need to wait for the function to end before call the next iteration of the recursion.