Contact: aviboots(AT)netvision.net.il
40,769 questions
53,151 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 */