Contact: aviboots(AT)netvision.net.il
39,900 questions
51,831 answers
573 users
function sum(n1, n2, n3, n4, n5) { return n1 + n2 + n3 + n4 + n5; } const arr = [1, 2, 3, 4, 5]; console.log(sum(...arr)); /* run: 15 */