in JavaScript by
Q:
How can you get the reference of a caller function inside a function?

1 Answer

0 votes
by
The arguments object has a callee property, which refers to the function you're inside of. For example −

function func() {

   return arguments.callee;

}

func();                // ==> func
Click here to read more about JavaScript
Click here to read more about Insurance

Related questions

0 votes
asked May 20, 2020 in React JS by SakshiSharma
0 votes
asked Nov 5, 2019 in Ansible by Robin
0 votes
asked Jun 11, 2020 in C Plus Plus by Robindeniel
+1 vote
asked Dec 4, 2019 in JavaScript by SakshiSharma
0 votes
asked Aug 29, 2020 in Python by Robindeniel
...