minor
This commit is contained in:
parent
48b6f4a663
commit
33c7a30b10
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ class Article {
|
||||||
|
|
||||||
let article = Article.createTodays();
|
let article = Article.createTodays();
|
||||||
|
|
||||||
alert( articles.title ); // Todays digest
|
alert( article.title ); // Todays digest
|
||||||
```
|
```
|
||||||
|
|
||||||
Now every time we need to create a todays digest, we can call `Article.createTodays()`. Once again, that's not a method of an article, but a method of the whole class.
|
Now every time we need to create a todays digest, we can call `Article.createTodays()`. Once again, that's not a method of an article, but a method of the whole class.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue