LogFAQs > #909803452

LurkerFAQs, Active DB, DB1, DB2, DB3, Database 4 ( 07.23.2018-12.31.2018 ), DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicWhat type of programmer are you?
DarkTransient
10/02/18 12:05:16 AM
#7:


window.onload = function() {
// code here.
}


The important difference from your option 1 is the space after the parenthesis.

Also this doesn't extend to languages where the begin / end is more than just one symbol. Eg, in Pascal:

procedure window.onload;
begin
// code here
end;

---
... Copied to Clipboard!
Topic List
Page List: 1