From Python's with to JavaScript's using and try/finally Quiz

Interactive Quiz ⋅ 12 Questions
By Stephen Gruppetta

From Python’s with to JavaScript’s using and try/finally shows how Python context managers translate to JavaScript resource management.

Test how you acquire resources, control their lifetime, await cleanup, and handle failures. Most questions ask what a short JavaScript snippet does.

The quiz contains 12 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A developer operates a print-job machine with an open lock, paper conveyors and panels labeled Acquire, Use and Release.

Course

From Python's with to JavaScript's using and try/finally

Port a print shop's job runner from Python to JavaScript, and learn to clean up locks, files, and connections with try/finally, using, await using, and disposable stacks.

intermediate js py