Answers for "Spread syntax in ES6"

0

Spread syntax in ES6

let arr1 = [1, 2, 3]
let func = (a, b, c) => a + b + c

console.log(func(...arr1)) // 6
Posted by: Guest on April-10-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language