JL
JavaScript Labjavascript.asharlabs.stream
MasterbookInterview ArenaStriver DSAQuick RevisionPlayground
Chapters (33)All Chapters
1.Difference between let, const and var2.What is hoisting in JavaScript3.What is scope (global, function, block)?4.What are closures?5.What is Event Loop?6.Explain call stack and execution context7.What are data types in JavaScript8.Difference between primitive and reference types9.What is type coercion10.Explain truthy and falsy values11.What is NaN and how do you check for it12.Explain ‘this’ keyword in JavaScript13.Difference between implicit, explicit, default, and new binding18.Explain pure functions and side effects19.What is immutability and why does it matter?20.Difference between undefined, null, and NaN35.What is Object.create used for36.Explain call, apply, bind — and differences between them37.What are Higher Order Functions38.What is callback hell and how to avoid it?39.Explain promises and how they work40.What is async&await and how is it different from promises?41.What are microtasks and macrotasks?42.Explain setTimeout, setInterval, and clearTimeout43.What is debouncing and throttling?44.What is event bubbling and capturing?59.Explain currying and partial application70.What are Web Workers and when should you use them?71.What are Service Workers and PWA concepts?76.Proxy and Reflect Api77.What is destructuring & aliasing and how is it useful?78.What is module federation in modern JS apps?79.Explain Virtual DOM and reconciliation in React conceptually (JS related)
Masterbook/Chapter 40• 1 min read
View Raw Code on GitHub

What is async&await and how is it different from promises?

💡 This chapter includes an interactive JavaScript implementation. You can edit and test it live below!
JavaScript Lab Sandbox
Console Output
Click "Run Code" above to execute and view output...
Previous ChapterExplain promises and how they workNext Chapter What are microtasks and macrotasks?
JL
JavaScript Lab

Curated interview questions, deep JavaScript runtime mechanics, native polyfills, and Striver A2Z DSA solutions.

Deployed at javascript.asharlabs.stream

Handbook

  • Interview Masterbook
  • Closures & Memory
  • Event Loop & Tasks
  • Quick Revision Notes

Interview Arena

  • SDE-1 Practice
  • SDE-2 Machine Coding
  • Swiggy Questions
  • Birdeye SSE Problems

DSA & Tools

  • Striver A2Z Sheet
  • In-Browser Playground
  • GitHub Repository
© 2026 Ashar Ali Khan. Open source developer guide.
Built with for frontend engineers.