JavaScript Engine
Is a computer program that execute javascript code and converts it into computer understandable language
--The first Javasript engine was SpiderMonkey that made by Brenden Eich , that Firefox currently used and Google Chrome from the early days uses the?V8?JavaScript engine (V8 engine?is a core component of the?Node.js?and?Deno?runtime systems).
Parser : splitting the code into small parts to compile it easily
Abstract syntax tree (AST) : is a tree like structure of the code.
Interpreter : simple compiler check the code line by line , then execute code and convert it to machine language
Compiler (TurboFan) : unlike interpreter the compiler take the hole code for compiling and execute it then
Just-in-time : is a method for improving the performance of interpreted programs. During execution the program may be compiled into native code to improve its performance. It is also known as dynamic compilation.
List of javaScript Engines :
Browser => Name of Javascript Engine
Google => ChromeV8Edge
(Internet Explorer) => Chakra
Mozilla Firefox => Spider Monkey
Safari => Javascript Core Webkit
Senior-Software-Engineer@Alnasayn & founder@Shadow Coding & Instructor & Content Creator
2 年keep going