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();
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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.