Skip to content

Commit 9927d29

Browse files
anshulyadav01ronreiter
authored andcommitted
🎯Updated the documentation of Function Context.
✌️There was a repetition of a certain phrase in the documentation of Function Context - call/apply vs bind. The phrase - "return a" was repeated twice. Removed the error.
1 parent 5e6602e commit 9927d29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/learn-js.org/en/Function Context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For example, let's call `printName` with `person` as the context using the `call
3333

3434
### call/apply vs bind
3535

36-
The difference between `call`/`apply` and `bind` is that `bind` returns a new function identical to the old function, except that the value of `this` in the new function is now the object it was bound to. `call`/`apply` calls the function with `this` being the bound object, but it does not return a return a new function or change the original, it calls it with a different value for `this`.
36+
The difference between `call`/`apply` and `bind` is that `bind` returns a new function identical to the old function, except that the value of `this` in the new function is now the object it was bound to. `call`/`apply` calls the function with `this` being the bound object, but it does not return a new function or change the original, it calls it with a different value for `this`.
3737

3838
For example:
3939

0 commit comments

Comments
 (0)