how does javascript interpret below logic internally, const usr = (...num1) =>{return 10+[1,2,3,4,];}
console.log(usr(10,20))
below is the output im getting output:101,2,3,4
shouldn't it just thow an error
how does javascript interpret below logic internally, const usr = (...num1) =>{return 10+[1,2,3,4,];}
console.log(usr(10,20))
below is the output im getting output:101,2,3,4
shouldn't it just thow an error