Why is Javascript your favorite language? What combination of properties does it have that make it special, apart from the ability to run in the browser?
I mean, it's hardly a bad language, but only the browser thing jumps out at me that says "Use this language for this problem!"
In short:
* It has C-like syntax with cool features like prototypical inheritance, an excellent object-literal format, first-class functions, and closures.
* Everyone knows it (or thinks they do).
* There are some really smart people in multiple different camps working on making extremely fast interpreters.
Still skeptical about JS as a general purpose language? Watch Doug Crockford's "Javascript: The Good Parts". If he can't convince you, no one can.
I mean, it's hardly a bad language, but only the browser thing jumps out at me that says "Use this language for this problem!"