upvote
No. By a large margin the main reason for JavaScript's success is that it is the only language with first class support in browsers.
reply
And why was it the only language in the browsers? And why did it spread to servers?

Well, what alternative was there? At the time for the bowser - none as far as I remember. For the server ... Java was bloated and PHP even more ugly. So I also choose node.

reply
> And why was it the only language in the browsers?

Nobody wanted to implement another language which would have broken cross browser functionality for animating menus on HTML pages.

> And why did it spread to servers?

Because frontend devs didn't want to learn another programming language.

> Java was bloated and PHP even more ugly. So I also choose node.

So you chose an environment that was slow, single-threaded, had an immature ecosystem, callback hell, and was difficult to debug. To each their own I guess.

reply
"To each their own I guess."

What choice was there, when I liked Java even less?

And node is just simple. I even used it as a cross plattform toolset. Indexing files. Moving around, tagging, sorting, toolcall. Not nice looking, but simple enough that it just worked. And I never had callback hell in node, as I kept my servers simple and most of the logic on the client.

reply