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

Let’s make one more tweak. Watch this step carefully; it’s a doozy:

image with no caption
image with no caption

From

Cover of Head First JavaScript Programming

Note

Again, in the code below, watch the difference between the invocation of the function and returning it. The invocation of the function requires parenthesis while returning a function is simple done through "return" keyword followed by the reference variable to the function.