- The compilation process has 3 phases: - Tokenizing/Lexing - Parsing - Code-Generation.
- All the checking and optimization is done in this compile time.
- The phase when the code is done compiled and is invoked to execute.
=> When we type and run the JS code in the console browser, the browser will firstly compile the code into machine code, and then run the byte code (compiled code) in the environment (JS v8) - which means this in runtime. How JS v8 works