VARIABLES AND CONSTANTS
WHAT IS CASE SENSITIVE?
DECLARING YOUR VARIABLES
Example of declaring variables:
DISPLAYING YOUR OUTPUT
Now before I go much further, I'm sure you noticed the document.write(); in the code example above. This is how you will display information, or print it out on the screen. There is also document.writeln(); document.writeln(); differs from just document.write(); because it will take the cursor down to the next line. As where in document.write(); you must include the html tag, <BR> (which is a hard line break) that takes the cursor down to the next line.
Another bit of code you might have noticed in the example above, are the "+" signs. The "+" sign is a concatenation character used to combine strings, numerical variables and numerical constants. In order to combine say, two or more strings or numbers, you will need to use the "+" character.
Now, I believe this tutorial will be better than previous tutorials written because of the following:
No Comments for this page.