# JOB Queue

In ES6 Promises were introduced as part of the native JavaScript, it is not part of WEB API. Callback Queue (Task Queue) is used to handle Web API actions, so they introduced Job Queue to handle Promises. It is same as the Callback Queue but it is smaller and higher priority than Callback Queue. So Event loop is going to look for Job Queue before looking to Callback Queue.&#x20;

![JavaScript Runtime after ES6 implementation](/files/-LnlrMnTuaJShP0Vk8UW)


---

# 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/job-queue.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.
