116. Example YAHOO.Trivia = function () { // define your common vars here // define your common functions here return { getNextPoser: function (cat, diff) { ... }, showPoser: function () { ... } }; } ();
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127. Code Conventions for the JavaScript Programming Language http://javascript.crockford.com/code.html
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142. The JavaScript Programming Language Douglas Crockford [email_address] produce.yahoo.com/crock/javascript.ppt