Or it just happened to monopolise the browser at a time when the web was being invented, and has nothing to do with the features of the language.
As a language for new developers is terrible: 100 different ways to do anything, most of them a muddle of paradigms that's inexplicable to anyone without 2 decades of experience, and so on.
Imagine a new developer using ChatGPT to generate: python, C, go, etc. vs. generating javascript. Most of the generated js is incomphrensible to newbies, but for the others generally obvious.
> Or it just happened to monopolise the browser at a time when the web was being invented, and has nothing to do with the features of the language
But applets were doing a lot more in the 90's and Flash dominated into the 2010s. However you feel about JS today, it's difficult to say it was all "first-mover advantage".
As a language for new developers is terrible: 100 different ways to do anything, most of them a muddle of paradigms that's inexplicable to anyone without 2 decades of experience, and so on.
Imagine a new developer using ChatGPT to generate: python, C, go, etc. vs. generating javascript. Most of the generated js is incomphrensible to newbies, but for the others generally obvious.