Update article.md
This commit is contained in:
parent
4963fce5f7
commit
09f2aa667c
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ User.staticMethod(); // true
|
|||
That actually does the same as assigning it as a property directly:
|
||||
|
||||
```js run
|
||||
class User { }
|
||||
class User() { }
|
||||
|
||||
User.staticMethod = function() {
|
||||
alert(this === User);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue