Callback function, recursive function, iterative function
Callback:
The callback function is to pass the function as a parameter toAnother function, whenAnother functionAfter execution, execute the function passed in as a parameter. So hereAnother functionIt is called a callback function.
recursive function:
A functionCall yourself directly or indirectly, This function is called a recursive function.
Iteration function:
An iterative function is a function that is repeated and compounded by itself. This process is called iteration.
Classic case: (Let’s find the information for yourself)
Fibonacci sequence: the third number is equal to the sum of the previous two numbers
Tower of Hanoi: concentric circles superimposed from small to large, moving from one pillar to another