← You're rethrowing errors and losing context. `Error.cause` fixes that.Quiz

Error.cause: preserving context on rethrow

The cause option lets a rethrown error keep the original attached instead of swallowing it. Check how you pass it, read it back, and what it does — and doesn't — support.

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.