Language concepts

ECMAScript job

Try the free JavaScript compiler

Specification unit of scheduled work such as a Promise reaction. The host integrates jobs with its scheduling machinery. Jobs are not synonymous with separate operating-system threads.

Formal Syntax & Structure

javascript syntaxjavascript
Promise.resolve().then(handler);

Working Example

Example Snippetjavascript
setTimeout(() => console.log("timer"), 0);Promise.resolve().then(() => console.log("reaction"));console.log("script");
JavaScript Reference