How to define a anonymous function?



How to define a anonymous function?..

Answer / Shubhendra Priyadarshi

An anonymous function is a function without a name. It can be defined using Function Expressions. Here's an example:nnconst myAnonymousFunction = function () {n // function body heren};

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What are the basic groups of dataypes in JavaScript?

1 Answers  


What is the use of document object?

1 Answers  


What is the purpose of local variables?

1 Answers  


I am providing the Online& class room training on Worksoft Certify for SAP/HTML/JAVA using real time scenarios in a real time environment for a real time project, If any one is interested please get in touch with me on aimansaud@gmail.com

1 Answers   Intel,


What does clean white space mean?

1 Answers  


What are the decodeURI() and encodeURI()?

1 Answers  


About document.getElementID? Explain giving one example. This was asked by a interviewer when i said that i know some JavaScript.

2 Answers   TCS,


What is the most popular javascript library?

1 Answers  


Why is java better than javascript?

1 Answers  


What are two-way data binding and one-way data flow, and how are they different?

1 Answers  


What is the use of blur function?

1 Answers  


How do you create a new object in JavaScript?

3 Answers   Satyam,


Categories