Skip to content

Commit 304ca1c

Browse files
authored
Update article.md
small fix in 'what is class'
1 parent 296dad9 commit 304ca1c

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)