JavaScript got popular because it was the only option for scripting in browser. Newbs constantly trip over its hazardous wires lying all over the floor. It's absurdly daunting, especially once you bring in all the modern libraries full of their own baggage.
What you say is true for Python though.