I'm doing most of my work in JavaScript these days. It's a good choice for doing anything, like web pages (all browsers run JavaScript), web server and web services (with node.js) and also robotics and RC with node.js.
To get Node.js (the runtime for JavaScript programs) onto the Raspberry, just run these two commands:
1. wget
http://node-arm.herokuapp.com/node_latest_armhf.deb
2. sudo dpkg -i node_latest_armhf.deb
Now, you can write a JavaScript program in a text file (e.g. myprogram.js) and run it with node.js like this
- node myprogram.js