kalovski

Untitled

Sep 19th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. let myArray = [1, 2, 3];
  2.  
  3. function sum(a, b, c) {
  4. return a + b + c;
  5. }
  6.  
  7. console.log(sum(...myArray));
  8. // 6
Add Comment
Please, Sign In to add comment