Thanks to this functionality, you can assign a function to a variable, an array element, or even pass one as an argument to another function call. This makes using functions a very handy and flexible beastie, but also a confusing one.
Many programming tasks can be accomplished with the simple declarative/static approach. You may not want to use anonymous or literal functions while getting started, but it’s useful to know what they are if you have to read someone else’s code. (And eventually, of course, you’ll probably want to use them!)
The most common type of function ...