Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5bc5913

Browse files
committed
TOC added for 11-Function
1 parent a4add25 commit 5bc5913

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎11-JavaScript-`this`-Keyword.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
- [`this` Keyword](#this-keyword)
2+
- [`this` in function](#this-in-function)
3+
- [`this` in methods](#this-in-methods)
4+
- [`this` in event handlers](#this-in-event-handlers)
5+
- [`this` in arrow functions](#this-in-arrow-functions)
6+
- [Function Borrowing](#function-borrowing)
7+
- [Implicit Binding](#implicit-binding)
8+
- [Explicit Binding](#explicit-binding)
9+
- [🤝 bind()](#-bind)
10+
- [🤙 call()](#-call)
11+
- [👏 apply()](#-apply)
12+
113
# `this` Keyword
214

315
In simple terms, `this` keyword in JavaScript refers to an object upon which a function is invoked. This means that `this` can only be used in a function, or globally.
@@ -288,3 +300,5 @@ By using `apply()`, we're essentially invoking the `greet` function in the conte
288300

289301
- By default, the methods of an object are implicitly bounded to the object itself, and we can access them using the dot (.) operator.
290302
- To access the methods of other objects, we need to explicitly bind them to the object using the `bind()`, `call()`, or `apply()` methods, with each one of them having its own use cases.
303+
304+
[<-- Previous [JavaScript Functions]](./10-JavaScript-Functions.md) <div style="text-align: right;"> [Next [Asnychronous JavaScript] -->](./12-Asynchronous-JavaScript.md)</div>

‎12-Asynchronous-JavaScript.md

Whitespace-only changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /