I"m learning in js. One practical application of call and apply,call is to convert an array of classes into an array. I have a question, why go to the slice method on the call array Array prototype, I took a look at slice"s api, and I want to ask why I use this method on Array.prototype?
function fun(){
var argArr = Array.prototype.slice.call(arguments);
debugger
}
fun(1,3,5,9)
one more question, what is the principle of [] .slice.call (arguments) that is the same as the Array.prototype.slice.call (arguments) result?