39
edits
Petermichaux (talk | contribs) |
Petermichaux (talk | contribs) |
||
| 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() { | window.onload = function() { | ||
run("program"); | |||
}; | |||
</script> | </script> | ||
edits