|Subject:||NEWBIE: Ending lines with a semicolon.|
|Posted by:||varois…@netzero.net (Patrick)|
|Date:||6 Jul 2003|
always finish my lines with a semicolon and when i try the 2 following
pieces of code they give the same output which is printing "Hello
world!" to the document.
The second example doesn't have the semicolon, why doesn't the browser
throw an error message?
document.write("Hello world!"); //Semicolon present
document.write("Hello world!") //Semicolon missing
Thanks to all
(Please answer here or email vaindio…@NOSPAMyahoo.com and remove
NOSPAM.I don't read the address used to post.)