/ / ================== ==========================
VAR VACTORIAL = Function () {
Var obj = new object ();
Obj.total = 1;
Obj.Start = Function (R) {
IF (! / ^ / d $ /. TEST (R)) {return "Please enter the positive integer!";
Obj.total = obj.total * r;
IF (r> 1) {
Obj.Start (R-1);
}
Return Obj.total;
}
Return Obj;
}
VAR v = new Vactorial ();
Alert (v.start (0));