TLDR Tech / Dev
It's about to get a lot easier for your JavaScript to clean up after itself
JavaScript is introducing a 'using' keyword, the first new variable declaration method since 2015. This keyword automates resource cleanup (like file handles and connections) when they go out of scope, eliminating the need for manual close() or abort() calls. It is already supported by most major browsers, with Safari being the exception.
Read the full story