Skip to content
doubtly

1 answer

The types of function are:

  • Named - These type of functions contains name at the time of definition. For Example:
function display()
{
  document.writeln("Named Function");
}
display();
 
  • Anonymous - These type of functions doesn't contain any name. They are declared dynamically at runtime.
var display=function()
{
  document.writeln("Anonymous Function");
}
display();
 
MrRam · 9 Oct 2022 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.