Answers for "js get current function name"

4

js get current function name

function DisplayMyName() 
{
   var myName = arguments.callee.toString();
   myName = myName.substr('function '.length);
   myName = myName.substr(0, myName.indexOf('('));

   alert(myName);
}
Posted by: Guest on October-02-2021

Code answers related to "js get current function name"

Code answers related to "Javascript"

Browse Popular Code Answers by Language