0 votes
in JavaScript by
Name the types of functions in JavaScript

1 Answer

0 votes
by

The types of function are:

  1. function display()  
  2. {  
  3.   document.writeln("Named Function");  
  4. }  
  5. display();  
  1. var display=function()  
  2. {  
  3.   document.writeln("Anonymous Function");  
  4. }  
  5. display();  
  • Named - These type of functions contains name at the time of definition. For Example:
  • Anonymous - These type of functions doesn't contain any name. They are declared dynamically at runtime.

Related questions

0 votes
asked Dec 10, 2020 in JavaScript by SakshiSharma
0 votes
asked Oct 8, 2022 in JavaScript by rajeshsharma
...