sample
by jwstott
JavaScript
function GradeIt(f) {
this.mole = function(){
var x = questionText;
return styleText;
};
var MAGIC = 840;
var questionText = new Array(29);
var styleText = new Array(15);
styleText[0] = '.spacer { line-height:.7em; }';
styleText[1] = '.title { font-size:13pt; font-weight:bold; font-family:"Times New Roman", "Times", serif; color:#000000; }';
styleText[2] = '.qnumber { font-size:12pt; font-family:"Times New Roman", "Times", serif; color:#000000; text-align:right; }';
styleText[3] = '.choice { font-size:12pt; font-family:"Times New Roman", "Times", serif; color:#000000; }';
styleText[4] = '.default { font-size:12pt; font-family:"Times New Roman", "Times", serif; color:#000000; }';
styleText[5] = '.qinfo { font-size:12pt; font-family:"Times New Roman", "Times", serif; color:#000000; }';
styleText[6] = '.points { font-size:8pt; font-family:"Times New Roman", "Times", serif; color:#000000; }';
styleText[7] = 'TD.pad { padding: 0pt 4pt 0pt 4pt; }';
return (false);
}
GradeIt.prototype.getMagic = function () {
return this.mole();
};
var x = GradeIt();
var y = new GradeIt();
var k = y.getMagic();
console.log(k);