View on GitHub

reads

https://yazansneneh.github.io/reads/

Errors handling and debugging

why understand how js executed?

where js code run ?

javascript engine

it’s the host that accept my js code and run it, it contain parser, syntax tree.

inside the maze v8 engine

  1. parser : parse the syntax of my js code and check for syntax error.
    • if there is error will send error message.
    • if correct will generate an abstract tree.
  2. Abstract tree convert generated tree into machine code.
  3. machine code is the code the computer understand and execute.

Execution Stack

execution context

how executuon context work ?

Hoisting

Scope Chain

This Keyword