Monday, August 23, 2021

How javascript works?

 





Every browser has it's own engine.ex:v8 for google chorome.  First own code hoisted into JavaScript engine and a parser parse it ,read code line by line and checks if it is correct or not .Because parser knows the JavaScript rules, If the code is syntactically correct then it parsed to a abstract syntax tree. Then the AST is converted to machine code. After converting to machine then executed my computer processor.

No comments:

Post a Comment

Element of a good table (Ref: Database design mere mortals by Michael J. Hernandez)

  Elements of the Ideal Table: It represents a single subject, which can be an object or event that reduces the risk of potential data integ...