creat call-apply-bind-methods readme files (#2172)

pull/2181/head
om agarwal 2 years ago committed by GitHub
parent b9f912ef10
commit 12e17dfb68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      content/roadmaps/106-javascript/content/111-javascript-this-keyword/107-call-method.md
  2. 6
      content/roadmaps/106-javascript/content/111-javascript-this-keyword/108-apply-method.md
  3. 6
      content/roadmaps/106-javascript/content/111-javascript-this-keyword/109-bind-method.md

@ -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…
Cancel
Save