| Define the different types of functions in JavaScript?
Below are the the two types of functions in JavaScript:-
(1)Name:-Here these type of functions contains name at the time of definition and below is the example:-
function display()
{
document.wrioteln("Example Named Function");
}
display();
(2)Anonymous:-Here this type of function will not contain any name. And these are declared dynamically at the runtime.
var display=function()
{
document.wrioteln("Example Anonymous Function");
}
display();
| | |