For instance, if you were to run a Python script you would type python filename.py or if you wanted to run a C program make filename then ./ filename>
Alternatively, if you're just looking to play around with Javascript a nice in browser option is Codecademy's Javascript Lab.
They also have a Python and Ruby IDE.