# V8 Engine

### **Interpreters:**

&#x20;    Reads the js code line by line and converts to binary code and provides the result.

&#x20;   **Cons:**  Execution time for repeated code will be longer.

### Compilers:

&#x20;   Reads the entire code in the js file and converts to another language and provides the result.

&#x20;  **Pros:**  Less execution time is taken for the repeated code execution.

### Inside V8 Engine

V8 Engine = Interpreter + Compiler = JIT (Just in Time) Compiler

![Inside V8 Engine](https://2037876129-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdbqCujxzeJqeQqlbM2%2F-LdbrFIWkvCdj0KOUbTX%2F-LdbrJBebigTgoXsjr5l%2FV8%20Inside.png?alt=media\&token=dc40da9a-76c9-45c8-aa25-db978d124163)
