Completion requirements
The bind()
method does not invoke a function but instead takes an existing function and creates a new function with a specified value for "this" inside the new function.
The syntax of the bind()
method is:
bind(thisArg, arg1, arg2, ….) //
arg1 and arg2 are optional