An anonymous function is a function that doesn't have a name associated with it. In other words, it's a function without an identifier that you can use to call or reference the function. Instead, anonymous functions are usually defined inline, within the context where they're needed.