Name the types of functions


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();  

Leave a Reply

Your email address will not be published. Required fields are marked *