Fix err in syntax
This commit is contained in:
parent
79417c6e73
commit
d883720079
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