Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sum(mass) {
- let res = 0,
- promRes = 0,
- cnt = 0;
- for(; cnt < arguments.length; cnt++) {
- promRes = arguments[cnt];
- res += promRes;
- }
- console.log(res);
- }
- sum(34,24,3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement