Most of your scripting will happen here. While you can, and will, use JavaScript in the body of your document, all of the really important programming will occur in the head. Finally, you should notice that just like basic HTML, you must open and close your script tags. A Note on Programming Some of the most important things about programming are not necessarily its function, but rather it's format. Just like writing a research paper, the greatest paper in the world will do you no good if other people can't read and understand it.
Programming is no different.
Form and style do count. The single easiest way to make sure that people understand what you are doing and why is to comment out areas of your script. To comment out a section just follow the format below. The first thing that we need to understand about anything dealing with programming is the concept of variables. If you have taken algebra, then you know that variables are.