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.
Because they lack a name, they aren't stored in the global namespace; instead, they are usually assigned to a variable or passed immediately as an argument to another function.