2-12 Code execution

Recall : two phases to run a js code

  1. creation phase : set up global object , setup variables, outer environments …
  2. execution phase : execution the code “line by line”