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 async and await work in Python. What happens if you call a regular time.sleep inside a coroutine?JuniorExplain 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?JuniorImagine your code has, one after another, a console.log, a setTimeout with zero delay, a Promise.resolve().then and an async function with an await. In what order will these run, and why?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