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

the browser as it parses and evaluates the code in your page:

image with no caption



Cover of Head First JavaScript Programming


How does the browser parse your code?
A tip: the browser parses and executes the codes in the following order:
identifying function declarations.
creating global variables and assigning values and function expressions to them.
calling functions.