← You keep escaping the Promise constructor. `Promise.withResolvers` does it right.Quiz

Promise.withResolvers()

The old "escape the executor" pattern versus the ES2024 static method that hands you promise, resolve, and reject in one call. Know the exact shape it returns, how it behaves, and when a deferred promise is actually the right tool.

questions6
pass mark70%
resultsat the end

No account needed. Answer all 6 questions, then see your score with every answer explained and a reference to the spec or MDN — pass and you can claim a certificate.