Author image

Shivam Mishra

Maintainer for Frappe & Frappe Charts. Building great OSS at Frappe Technologies

JavaScript - Async and Promises

JavaScript is designed for the web, that means it's supposed to be asynchronous. This means, you can have two lines of code (L1 followed by L2), where L1 schedules some task to be run in the future, but L2 runs before that task completes.


Over Explained - JavaScript and V8

JavaScript needs a runtime, this is provided by JS Engine. It's the part of your browser that takes the JS code and executes it. Each popular browser has it's own implementation of a runtime. A JavaScript engine is a kind of process virtual machine that is designed specifically to interpret and execute JavaScript code. Chrome's V8 is one of the most popular ones, it powers the Node environment and is considered to be the one fastest JS Engines yet.