← 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%
feedbackinstant
No account needed. Every answer is explained as you go, with a reference to the spec or MDN — pass and you can claim a certificate.