Interview GURU

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 test()  
{  
  document.writeln("Named Function");  
}  
test();  

  • Anonymous - These type of functions doesn't contain any name. They are declared dynamically at runtime.
var test=function()  
{  
  document.writeln("Anonymous Function");  
}  
test();