Skip to content

Commit 1c8ba40

Browse files
author
Nikita Kulikov
committed
added parentheses to Date constructor
1 parent 885ade4 commit 1c8ba40

File tree

1 file changed

+1
-1
lines changed
  • 1-js/6-objects-more/5-static-properties-and-methods/1-objects-counter

1 file changed

+1
-1
lines changed

1-js/6-objects-more/5-static-properties-and-methods/1-objects-counter/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
```js run
44
function Article() {
5-
this.created = new Date;
5+
this.created = new Date();
66

77
*!*
88
Article.count++; // увеличиваем счетчик при каждом вызове

0 commit comments

Comments
 (0)