ServerJS/Modules/SecurableModules: Difference between revisions

Line 31: Line 31:
   var sum = arguments[0];
   var sum = arguments[0];
   for (var i=1; i<arguments.length; i++) {
   for (var i=1; i<arguments.length; i++) {
     sum += arguments[i];   }
     sum += arguments[i];
  }
   return sum;
   return sum;
  };
  };
Line 133: Line 134:
   // You might not use use the window.onload property
   // You might not use use the window.onload property
   // but rather addEventListener/attachEvent.
   // but rather addEventListener/attachEvent.
   window.onload = function() {     run("program");   };
   window.onload = function() {
    run("program");
  };
  </script>
  </script>
39

edits