Built-in Functions
|
|
|
|
call() accepts an list of arguments | apply() accepts a single array of arguments. |
individual arguments of varying type | array input with similar elements |
With
call()
andapply()
method, you can write a method that can be used on different objects.With
call()
andapply()
method, we call an existing function and change the function context i.e. the value of thethis
object.
bind()
bind()
allows us to make a copy of the function and then change the value of the this
object.
Last updated