Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Name the types of functions in JavaScript
Home
JavaScript
Name the types of functions in JavaScript
0
votes
asked
Jun 8, 2022
in
JavaScript
by
sharadyadav1986
Name the types of functions in JavaScript
javascript-functions
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 8, 2022
by
sharadyadav1986
The types of function are:
function display()
{
document.writeln("Named Function");
}
display();
var
display
=
function
()
{
document.writeln("Anonymous Function");
}
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.
...