Here, the Function object is replaced by the name of the function of which we want to know the parent function name.
Example 1: When the below code is executed, we can see the name of the parent function being logged out.
Example 2: Suppose we call the Foo function from multiple functions.
Geeks Fun Sam
You can know more about the parent function from the property Function.caller
My Personal Notes arrow_drop_up
Please Login to comment...