Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
Explain how the event loop works in JavaScript. And what gets printed to the console if a script has, one after another, a console.log, a setTimeout with zero delay, and a Promise.resolve().then?JuniorHow does prototypal inheritance work in JavaScript?JuniorWhat is a closure in JavaScript? Give an example of where it's used in practice.JuniorWhat is a promise, and how does async/await differ from a then chain?JuniorExplain how prototypal inheritance works in JavaScript, and what actually happens when you write a class with extends.Mid-levelWalk me through how the event loop works in the browser and where frame rendering fits into it. How has this knowledge helped you in practice?Senior