- apply()
- The
apply()
method calls a function with a giventhis
value andarguments
provided as an array (or an array-like object).
- The
- bind()
- The
bind()
method creates a new function that, when called, has itsthis
keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.
- The
- call()
- The
call()
method calls a function with a giventhis
value and arguments provided individually. - Note: While the syntax of this function is almost identical to that of
apply()
, the fundamental difference is thatcall()
accepts an argument list, whileapply()
accepts a single array of arguments.
- The