Skip to content

Commit dff1de4

Browse files
authored
Changes this variable to this keyword (ronreiter#721)
calling 'this' a keyword is better to avoid confusion
1 parent 4e2e46f commit dff1de4

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
@@ -1,7 +1,7 @@
11
Tutorial
22
--------
33

4-
Functions in JavaScript run in a specific context, and using the `this` variable we have access to it.
4+
Functions in JavaScript run in a specific context, and using the `this` keyword we have access to it.
55

66
All standard functions in the browser run under the Window context. Functions defined under an object or a class (another function) will use the context of the object it was created in. However, we can also change the context of a function at runtime, either before or while executing the function.
77

0 commit comments

Comments
 (0)