updates
This commit is contained in:
parent
94c83e9e50
commit
cc5213b09e
79 changed files with 1341 additions and 357 deletions
|
@ -17,10 +17,10 @@ class User {
|
|||
User.staticMethod(); // true
|
||||
```
|
||||
|
||||
That actually does the same as assigning it as a function property:
|
||||
That actually does the same as assigning it as a property:
|
||||
|
||||
```js
|
||||
function User() { }
|
||||
class User() { }
|
||||
|
||||
User.staticMethod = function() {
|
||||
alert(this === User);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue