1.

What are the important properties of an anonymous function in JavaScript? Give an example.

Answer»

A function that is declared without any named identifier is known as an anonymous function. In general, an anonymous function is inaccessible after its declaration. Anonymous function declaration – anon = function() 

{ alert('I am anonymous'); }; 

anon();



Discussion

No Comment Found

Related InterviewSolutions