Get the function name inside the function:
function nexssFunction(){ console.log(`Function Name: ${arguments.callee.name}`) } nexssFunction() // Result: Function Name: nexssFunction
There was an error while loading. Please reload this page.