Define anonymous function

Define anonymous function

The function is called an anonymous function when a function is used without a name. Here, functions stored in variables do not need function names. Example - var x = function (a,b) { return a + b};