I don't think you're entirely wrong here, but you make sweeping generalizations about programmers that I see a lot online that irk me.
Most developers I know have a few languages they're familiar with. A good developer uses the right tools for the job. When I work with my python shop I use that. When I need a quick webapp it'll be JS. If there's something that requires high performance I might try go.
Every language has pitfalls and vulnerabilities, but that really says nothing of their utility. Any flame war between languages is typically pedaled by dilettantes fueled by memes they don't understand (like javascript == memes)
take this admittedly ancient study of vulnerabilities divvied up by language:
https://www.zdnet.com/article/which-are-the-most-insecure-programming-languages/
In JS, you don't have to free memory manually. Nor in python. This (mostly) precludes a whole class of severe bugs/vulns, but those weren't relevant anyway because they're different tools for different jobs.
We can bemoan the gigantic js ecosystem, but we can also realize it is a fantastic resource for novices and veterans alike.