Function that is declared without any named identifier. Therefore it is not accessible after its initial creation.
Example:
function(){
console.log('boo')
}
Anonymous functions can be used for IIFE (Immediately Invoked Function Expressions) to encapsulate some code inside a local scope so that variables declared in it do not leak to the global scope.
(function(){
console.log('hello')
})();
They can also be used as callbacks:
setTimeout(function(){
console.log('hello')
}, 1000);