Js apply call

console.log.apply(console, args);
Math.max.apply(Math,number);

in the study of apply call, why is the first parameter of apply bound to the object? That is, why one parameter of console.log.apply (console, args); is console,Math.max.apply (Math,number); the first parameter is Math?

 Array.prototype.slice.apply(arguments) 

and the arguments? of this apply case

Dec.24,2021

The
apply () method calls a function with a given th value, as well as parameters provided as an array (or similar array object).

clipboard.png


understand the first parameter of apply,call

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ebad6b-485c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ebad6b-485c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?