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

ssing a function to a function

Okay, we’ve got a function that’s ready to accept a function as an argument (processPassengers), and we’ve got two functions that are ready to be passed as arguments to processPassengers (checkNoFlyList and checkNotPaid).

It’s time to put this all together. Drum roll please...


Cover of Head First JavaScript Programming


How to really use functions as first class values that can be assigned to variables and can be passed as arguments?