Which language would be more suitable for a site with an online console?

Which language would be most suitable for a site with an online console and other interfaces (dunno of that’s what you call it)? Sites like codeacademy.com uses and online console for writing simple/test programs online. I have a killer idea if you could help me out.

i would recommend Javascript

I am also suggesting you use JavaScript