'If Javascript code gets executed line by line then, how AST (Abstract syntax tree) works?

Javascript is an interpreted language which executes code line by line. On the other hand, AST (Abstract Syntax Tree) inside the Javascript engine, created the data structure of the whole code and converts into machine code. Then how line by line mechanism is being applied here?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source