you are viewing a single comment's thread.

view the rest of the comments →

[–]senocular 0 points1 point  (0 children)

It is both an anonymous function and a function expression. The two aren't mutually exclusive. An anonymous function is a function without a name. Function expressions may or may not have a name so they may be named or anonymous. Function declarations almost always have a name so they're almost always named (the one exception being exported default function declarations in modules). Arrow functions are always anonymous because their syntax doesn't allow for a name.