Can you assign a anonymous function to a variable?



Can you assign a anonymous function to a variable?..

Answer / Anshu Prabha

Yes, you can assign an anonymous function to a variable in JavaScript using the assignment operator (=) after defining the function with the function keyword or arrow function syntax.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How many data types are there in javascript?

1 Answers  


What is the use of a boolean object in javascript?

1 Answers  


How to create array in JavaScript?

1 Answers  


How to update a function in javascript?

1 Answers  


What is the difference between rootscope and scope?

1 Answers  


How to write comment in JavaScript?

1 Answers  


Define escape() function?

0 Answers  


How to you change the title of the page by javascript?

1 Answers  


Is a parabola a function?

1 Answers  


Are java and javascript same?

1 Answers  


What companies use javascript?

1 Answers  


What is the difference between sessionstate and viewstate?

1 Answers  


Categories