# Anonymous functions in js
An anonymous function in [[JavaScript|js]] is one that is not named. Its lack of a name is most often due to the fact that it is only used once. Anonymous functions are declared and used with the same code, so they are a form of [[Abbreviation in js]].
While a typical function in js is defined this way:
```js
function name (parameter) {
// Stuff
}
```
an anonymous function can be defined like this:
```js
function () {
// Stuff
}
```
[[Arrow functions in js]] are one type of anonymous function.