0 votes
146 views
in Javascript by (2.0k points)
edited

Name the types of functions

1 Answer

0 votes
by (2.0k points)
edited

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

Related questions

0 votes
1 answer 104 views
asked Aug 19, 2022 in Javascript by codelikepro (3.5k points)
0 votes
1 answer 136 views
0 votes
1 answer 100 views
0 votes
1 answer 127 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...