JSFiddle - React, Tailwind, and code Playground
by mkerny45
JavaScript
function main()
{
Hello();
}
function Hello()
{
// How do you find out the caller function is 'main'?
}
function Hello()
{
alert("caller is " + arguments.callee.caller.toString());
}