Define anonymous function in JavaScript
Answers (1)
Add AnswerIt’s a function that doesn’t have a name. Instead of utilizing the function declaration, these functions are declared dynamically at runtime using the function operator. A function declaration is more rigid than a function operator. It can simply be substituted for a phrase. Consider the following scenario:
var display=function() { alert("Anonymous Function is invoked"); } display();