That is not an error.  Javascript does not require a semi-colon at the
end of each statement provided statements are on separate lines. IE:

statement1
statement2

If you place two statements on the same line, a semi-colon between them
is required, but you would not need one at the end. IE

statement1; statement2

However, most people write javascript with semi-colons because:
1. They like that style
2. They have come from some other language that uses that and so its
habit
3. They don't know any better
4. Whatever reason you (the reader) have for using them

This comes down to keeping style consistent.  If you use semi-colons on
all the other lines, you should use it on this one.

Speaking of style. (IHMO) Most people would consider the use of single
quotes in setting a string variable as bad style.  Its not illegal, but
most people use double quotes.

HTH,
Gareth


--- Arturo 'Buanzo' Busleiman <[EMAIL PROTECTED]> wrote:

> var type = 'navigator:browser' // **ERROR HERE** missing semicolon
after last "'"



      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to