I don't think it is. If JS had any sane competition, I think it would have lost. By some weird conjunction of events, it landed a monopoly on the most amazing plateform in the world.
PHP is a good example of Worse is Better, because it won over the competition, despite its flaws.
PHP is a good example of Worse is Better, because it won over the competition, despite its flaws.
HTML vs xHTML as well. Bash, maybe?
But JS didn't win. It was the only one there.