What is the difference between an Anonymous Function and a named function?



What is the difference between an Anonymous Function and a named function?..

Answer / Vikash Bharati

A named function (also known as a function declaration) has a name associated with it, making it easier to reference later in your code. An anonymous function (function expression) does not have a name and can be assigned to variables or passed as arguments to other functions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Write a program to exaplain the deferred scripts using event handlers in javascript.

1 Answers  


What are the different boolean operators in JavaScript?

1 Answers  


Explain prototypal/differential inheritance?

1 Answers  


How you will add function as a property in a javascript object? Give an example.

1 Answers  


What is innertext javascript?

1 Answers  


How to use one javascript function for multiple input fields?

1 Answers  


What makes something a function?

1 Answers  


How to handle event handlers?

1 Answers  


How to write comment in JavaScript?

1 Answers  


Can you run javascript in notepad?

1 Answers  


What is the difference between java and java script?

9 Answers   IWW, Wipro,


What is scope chain in javascript?

1 Answers  


Categories