Learn Create Your Own Split Screen

Next Page

You might also notice that inside the <script> area each line ends with a semi-colon ";".

Well, that's not completely true -- each statement ends with a semi-colon.

A statement, in programming languages, is like a sentence in English, and we tend to put full-stops on the end of those to make things easier to understand.

Because computers are kind of stoopid, computer languages have the same idea. In Javascript, it's a semi-colon. Other computer languages use other methods, but the semi-colon is very common.


In English, you can have a sentence that goes over several lines, or you can have more than one sentence on a line. It's the same with computer languages and statements, but for clarity we tend to put each one on its own line.