parses code and builds ast (abstract syntax tree)

A JavaScript parsersĀ parses the code, build AST, scope variables and find errors. When we define functions in our execution context it takes up some memory and waits for the function call.