← You still write `finally { resource.close() }`. The `using` keyword does it automatically.Quiz

Explicit resource management: the using declaration

using and await using call an object's Symbol.dispose (or Symbol.asyncDispose) method automatically when a block exits — on normal completion, an early return, or a thrown error. Know the disposal order, which values are allowed, and when it throws instead of silently doing nothing.

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.