/ Published in: JavaScript
just testing snipplr.com
Expand |
Embed | Plain Text
function sum() { var res = 0; for (var i=0; i < arguments.length; i++) { res += arguments[i]; } return res; }
Comments
Subscribe to comments
You need to login to post a comment.

function sum(){ return eval([].join.call(arguments,'+')); }