We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7200741 commit 2ec3e7cCopy full SHA for 2ec3e7c
questions/explain-how-this-works-in-javascript/en-US.mdx
@@ -105,7 +105,7 @@ const person = new Person('John');
105
person.showThis(); // Person {name: 'John'}
106
107
const showThisStandalone = person.showThis;
108
-showThisStandalone(); // `undefined` because all parts of a class' body are strict mode.
+showThisStandalone(); // `undefined` because in JavaScript class bodies, all methods are strict mode by default, even if you don't add 'use strict'
109
```
110
111
### Explicitly binding `this`
0 commit comments