in JavaScript by
Q:
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 Sep 20, 2021 in JavaScript by sharadyadav1986
0 votes
asked Dec 10, 2020 in JavaScript by SakshiSharma
...