25 lines
483 B
JavaScript
25 lines
483 B
JavaScript
|
function example(/**Circle*/a, b) {
|
||
|
/** a global defined in function */
|
||
|
var number = a;
|
||
|
|
||
|
var hideNumber = function(){
|
||
|
}
|
||
|
|
||
|
setNumber = function(){
|
||
|
}
|
||
|
alert('You have chosen: ' + b);
|
||
|
}
|
||
|
|
||
|
function initPage() {
|
||
|
var supported = document.createElement && document.getElementsByTagName;
|
||
|
if (!supported) return;
|
||
|
// start of DOM script
|
||
|
var x = document.getElementById('writeroot');
|
||
|
// etc.
|
||
|
}
|
||
|
|
||
|
/** an example var */
|
||
|
var document = new Document(x, y);
|
||
|
|
||
|
var getNumber = function(){
|
||
|
}
|