User:Afaprof01/sandbox3.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache
.
// <nowiki>
http://www.remnantnewspaper.com/Archives/archive-2007-0831-ecumenical_dialogue.htm

{{Excellent}}
function biggest(a,b,c){
   biggun=a; // start by assuming first is biggest
   if(b>biggun){biggun=b;}
   if(c>biggun){biggun=c;}
   return biggun;
}

document.write('biggest is '+biggest(6,9,5));
addOnloadHook(
  function() { 
    addTab("javascript:biggest((6,9,5))", "calc", "ca-calc", "Mark for calc", "");
  }
);
// </nowiki>