Usually, it's place in a html file to use through a browser. e.g. <script language="javascript"><!-- Your JS here --></script> I don't know about Windows, Mac and the other OSes out there, but I think Linux has some libs or an interprator so that JS can be used natively in the OS.