| 1 |
function example(/**Circle*/a, b) { |
| 2 |
/** a global defined in function */ |
| 3 |
var number = a; |
| 4 |
|
| 5 |
var hideNumber = function(){ |
| 6 |
} |
| 7 |
|
| 8 |
setNumber = function(){ |
| 9 |
} |
| 10 |
alert('You have chosen: ' + b); |
| 11 |
} |
| 12 |
|
| 13 |
function initPage() { |
| 14 |
var supported = document.createElement && document.getElementsByTagName; |
| 15 |
if (!supported) return; |
| 16 |
// start of DOM script |
| 17 |
var x = document.getElementById('writeroot'); |
| 18 |
// etc. |
| 19 |
} |
| 20 |
|
| 21 |
/** an example var */ |
| 22 |
var document = new Document(x, y); |
| 23 |
|
| 24 |
var getNumber = function(){ |
| 25 |
} |