O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

: But don’t we always just store the reference we get from a function expression in a variable anyway?

Function: Definitely not. In fact, we usually don’t. Remember a function reference is a value. Think of the kinds of things you can do with other kinds of values, like an object reference for instance. I can do all those things too.

Head First: But how can you possibly do...


Cover of Head First JavaScript Programming


What is the importance of treating functions as values?
A tip: remember that in event handling, we had a setTimeOut function passed a function as a parameter?