Electron is worse. At least Javascript was designed and meant for the web. The millions of dollars and hours of effort put into getting Javascript to act like C++ and replacing native apps with Chromium wrappers has been a disaster both for programming as a discipline and the end user.
Although I would disagree with the initial premise, too. Javascript has been a part of the web for nearly 30 years now. Pretending it doesn't belong there at this point and ranting about other people finding it useful is just infantile.