JavaScript Syntax



Your computer, of course, can only execute the commands that it is given. As a programmer, this means, if you mistakenly give the computer the wrong command, it will not know. The computer will execute any correctly-phrased command that it is given. Similarly, if you phrase the command in a way that the computer is not expecting, you will witness the digital equivalent of a "hissy fit". (If you haven't already in your JavaScript endeavors.) The words and/or symbols that are used to issue commands have to be positioned, spelled, and spaced correctly.

The syntax for doing this is as follows: