Note: The scripts shown here are demonstrations of code. They are neither the best not the only solutions and may not run everywhere. We'll see better examples as we go along.
To see the "Hello world" scripts, click the link and run them. Then, look at the source code of the page displayed. (If you can't see the <script> ... </script> tags in the source, try a different browser.)