Normally you add a semicolon at the end of each executable statement.
Using semicolons also makes it possible to write many statements on one line.
Each statement is executed by the browser in the sequence they are written.
This example will manipulate two HTML elements:
Blocks start with a left curly bracket, and end with a right curly bracket.
The purpose of a block is to make the sequence of statements execute together.
This example will run a function that will manipulate two HTML elements:
You will learn more about functions in later chapters.
getElementById is not the same as getElementbyID.