Edit: or was that sarcasm?
I wouldn't be surprised if this has been done too, but if it has it's not as popular as Lua.
Actually now that I write this, I wonder about the possibility of JavaScript game scripting combined with something capability-aware like Caja for hosted game mods. Could be an interesting area to explore.
No thanks, not willing to pay that overhead. I'd put $50 on the bet, though :)
Aren't there already a lot of Javascript games out there though?
You need to change that sentence then...
Of course, DOM is utterly irrelevant here, just wanted to point out its use in games.
However, times have changed. The kind of games i'm interested in are ubiquitous in nature. I want to interact with it on the console, the iPhone, the PC, and on the web. I want to write tools that are cross platform. The browser is the ultimate cross platform.
Okay, maybe I was working for the unmentioned 1% (and for what it's worth, the company I currently work for uses JavaScript). And really, it's not a bad idea to learn JavaScript - it's pretty ubiquitous and chances are you will work for a company that uses it at some point in your career. But honestly, I'm getting a little sick of all these articles that seem to forget that there is more to programming than web apps.
Edited to remove snarkiness.