This is a function that has no name or without a name. These type of functions are declared dynamically at runtime using the function operator instead of the function declaration. A function operator is more flexible than a function declaration. It can be easily used in the place of an expression.
For example:-
var display=function()
{
alert("Anonymous Function is invoked");
}
display();
Liked By
Write Answer
What is an anonymous function in Javascript ?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
05-Apr-2019This is a function that has no name or without a name. These type of functions are declared dynamically at runtime using the function operator instead of the function declaration. A function operator is more flexible than a function declaration. It can be easily used in the place of an expression.