Skip to content

Commit 9e966c0

Browse files
authored
Merge pull request #1756 from Venul/patch-3
Update article.md
2 parents 296dad9 + 304ca1c commit 9e966c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/09-classes/01-class/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ alert(typeof User); // function
109109
alert(User === User.prototype.constructor); // true
110110

111111
// Методы находятся в User.prototype, например:
112-
alert(User.prototype.sayHi); // alert(this.name);
112+
alert(User.prototype.sayHi); // sayHi() { alert(this.name); }
113113

114114
// в прототипе ровно 2 метода
115115
alert(Object.getOwnPropertyNames(User.prototype)); // constructor, sayHi

0 commit comments

Comments
 (0)