Anonymous functions in JS
Last updated
Was this helpful?
Last updated
Was this helpful?
An anonymous function is a without a name. An anonymous function is often not accessible after its initial creation. Here is an example of an anonymous function expression (the name is not used):
It is also possible to provide a name inside the definition in order to create a named function expression: