Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8057245

Browse files
authored
Merge pull request HackYourFuture#434 from TotempaaltJ/patch-3
Forgotten `()` in function call
2 parents 56d42ff + 32ae03a commit 8057245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Week2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const wouter = {
180180
In this example `this` refers to the complete `wouter` object. If we execute `wouter.getFullName()`, we get back the value of `wouter.firstName` and `wouter.lastName`.
181181

182182
```js
183-
wouter.getFullName; // Result: Wouter Kleijn
183+
wouter.getFullName(); // Result: Wouter Kleijn
184184
```
185185

186186
As you can imagine, this means that there can be multiple `this` keywords at play: the global `this` keyword (which refers to the `window` object) and a `this` keyword for every object that is created within the application.

0 commit comments

Comments
 (0)