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

When the browser parses your page—before it evaluates any code—it’s looking for function declarations. When the browser finds one, it creates a function and assigns the resulting reference to a variable with the same name as the function. Like this:

image with no caption

From

Cover of Head First JavaScript Programming

Note

How does the browser handle function declarations?