Electron has even worse resource management, since its built on top of Chromium, which doesn't even attempt to make any reasonable decisions about how much resources can be utilized. I find it truly remarkable that 5 years ago I could use an 8GB MBP with no issue, and now with a 16GB MBP I get daily warnings about running out of space, because of RubyMine (I get it), Discord, and Chrome.
Maybe instead of writing all these articles about how JavaScript is great and the new-wave, actually writing apps that can stay bounded to 250MB memory?