creat call-apply-bind-methods readme files (#2172)
parent
b9f912ef10
commit
12e17dfb68
3 changed files with 18 additions and 0 deletions
@ -0,0 +1,6 @@ |
||||
# call() method |
||||
|
||||
The `call()` method calls the function with a reference to the aspire object to `this` keyword. `call()` method accepts an argument list and each arguments should be provided individually. |
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call'>call() method</BadgeLink> |
@ -0,0 +1,6 @@ |
||||
# apply() method |
||||
|
||||
`apply()` method is almost identical to `call()` method, except that `call()` method accepts an argument list, while `apply()` method accepts a single array of arguments. |
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply'>apply() method</BadgeLink> |
@ -0,0 +1,6 @@ |
||||
# bind() method |
||||
|
||||
The `bind()` method return a new method that has its `this` keyword refers to the aspire object, with a given sequence of arguments which can be call later. |
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind'>bind() method</BadgeLink> |
Loading…
Reference in new issue