Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
function PrintAll(a, b, c, d) { console.log(a, b, c, d); } const args = [1, 2, 3, 4]; PrintAll(...args); /* run: 1 2 3 4 */
function PrintAll(a, b, c, d) { console.log(a, b, c, d); } const args = [1, 'a', 3, 4, 5, 6]; PrintAll(...args); /* run: 1 a 3 4 */