adspace


how to create an anonymous function

Answer Posted / Ravindra Kumar Sagar

In JavaScript, you can create an anonymous function using the following syntax:n```javascriptn(function() {n // code goes heren})();``` This function doesn't have a name and is executed immediately after it is defined.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

code to sorting an array of objects

2572