# 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](/files/-LdbrJBebigTgoXsjr5l)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://javascript-1.gitbook.io/javascript/v8-engine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
