- A scanner scans the code which is then converted into tokens. This process is done using regular expression.
- The tokenized code is then parsed where its scope and structure is encoded into a syntax tree.
- The tree structure is passed through translator where it is converted into equivalent bytecode.
- The final phase is performed by the byte code interpreter which turns the byte code into native code and renders it in the browser