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 8eed0d7 commit 5ef143dCopy full SHA for 5ef143d
1-js/09-classes/03-static-properties-methods/article.md
@@ -109,6 +109,17 @@ Static methods are also used in database-related classes to search/save/remove e
109
Article.remove({id: 12345});
110
```
111
112
+````warn header="Static methods aren't available for individual objects"
113
+Static methods are callable on classes, not on individual objects.
114
+
115
+E.g. such code won't work:
116
117
+```js
118
+// ...
119
+article.createTodays(); /// Error: article.createTodays is not a function
120
+```
121
+````
122
123
## Static properties
124
125
[recent browser=Chrome]
0 commit comments