Hits 2653 | Created 2007-06-13 | Modified 2007-06-13This was going to be a long tutorial, but I only made it to Hello World...
Section 01 Article 01
The first thing to do with a new language is to display Hello World however you can. It fills you with joy that you can actually do something so quickly.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Most of the script is HTML of course, so you should create a text file called 01-01.html with this in it, then view it in a web browser.
You should see:
We could also say:
var myString = "Hello World!";
And get the same result. 'var' is short for variable, and is basically our own little entity that we assign a string of text to. We can then pass our entity name to the 'write' command, and it will write the value of out entity for us.
Semi-colons. Some say they are optional, and they are, but, if I were you, I'd terminate each line/command with one. If you continue in programming further, you'll understand why.
Close the HTML comment line, and the script tag. After this the browser will process everything as HTML as usual.