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

there’s another way to use the function keyword:

image with no caption

Now when we use the function keyword this way—that is, within a statement, like an assignment statement—we call this a function expression. Notice that, unlike the function declaration, this function doesn’t have a name. Also, the expression results in a value that is then assigned to the variable fly. What is tha...


Cover of Head First JavaScript Programming


Another way of using "function" keyword?