Comments for Is JavaScript the most successful scripting language ever?
http://code.google.com/webstats/2005-12/scripting.html
"script tags are used on roughly half of" the web pages in the world.
Handwaving a little, I would argue that the web has the greatest corpus of documents we have seen with the widest range of authors.
Q.E.D. ?
Liking it is not apropos.
Regards
To get back on topic, I think bash and perl would be considered "more successful", especially considering how much competition they've had in the same space.
In that sense, grumpyY! has a point: JavaScript has little competition. You could count Flash and if you're stretching, JScript. Maybe even Java applets (interpreted bytecode, not really a script per se).
So if you're asking whether it's most successful on the grounds of it being far and ahead the leader in its domain, and limiting the contest to the most widespread scripting environments, I think you could make a very good case.
Well if the definition of "success" is "installed in the most places. Then the DOS batch language, and every autoexec.bat written with it, wins with VBScript a close second I guess. Perl has been around a lot longer than Python, so even though they may both be installed by default on *nix boxes now, that wasn't always the case. I'd still classify Perl as the most successful because my definition of sucess includes not only "most installed", but "most used overall.". Javascript is the first thing you think of when you need to make a web page beep, but Perl is the duct tape holding most systems together. ;)
It's all about context.
Plus, just on principle you have to honor FORTH for remaining resolutely Old School and not succumbing to ephemeral fads like named local variables or infix notation.
I can't imagine that JS wins any lines of code wars, it's traditionally so rarely used for anything of significance. Would the C preprocessor count as a scriping language? There's a lot of those :)