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

That’s exactly right. Passing a function as an argument to another function copies the function reference we’re passing into a parameter variable in the function we’ve called. And just like any other parameter, a parameter holding a function reference is a local variable.


Cover of Head First JavaScript Programming


How is a function treated as a parameter?