JavaScript Promises and Async/Await Explained
A practical mental model for understanding what JavaScript actually does when you create a Promise, chain then(), call an async function, or pause at await.
Loading page…
Author
Publisher of Geljek
MD Abu Abdullah is a Full Stack Developer and technology writer with hands-on experience building modern web applications, WordPress products, and scalable digital platforms. He works primarily with JavaScript, TypeScript, React, Next.js, Node.js, PostgreSQL, and modern web technologies. His interest goes beyond simply using frameworks and libraries—he enjoys understanding how technologies work internally, why certain architectural decisions matter, and how software can be designed to remain maintainable as it grows. Through Geljek, Abdullah writes about JavaScript, web development, software architecture, frameworks, developer tools, and the engineering concepts behind modern applications. His goal is to turn complex technical topics into clear, practical explanations that help developers understand not only how to write code, but why the code works the way it does.
A practical mental model for understanding what JavaScript actually does when you create a Promise, chain then(), call an async function, or pause at await.
A practical mental model for predicting JavaScript execution order, understanding browser rendering, and finding event-loop performance bugs.
JavaScript looks like source code executed line by line, but modern engines do far more. Follow JavaScript from raw source text through parsing, execution contexts, bytecode, JIT compilation, optimisation, deoptimization, and machine execution.