Define a named function in JavaScript.


The function which has named at the time of definition is called a named function. For example

function msg()  
{  
  document.writeln("Named Function");  
}  
msg();  

Leave a Reply

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