Rasi
answered Nov 30 '-1 00:00
let me explain apply method
function circle(r,d) {
return r*d;
}
var circleMeta = [12,12];//r,d
circle.apply(null, circleMeta );
if we want to pass all array value to argument of function than apply is good to use.
above code return two array value multiplication
it make array to flat value and pass to function argument as order as it in array in JavaScript