We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 296dad9 commit 304ca1cCopy full SHA for 304ca1c
1-js/09-classes/01-class/article.md
@@ -109,7 +109,7 @@ alert(typeof User); // function
109
alert(User === User.prototype.constructor); // true
110
111
// Методы находятся в User.prototype, например:
112
-alert(User.prototype.sayHi); // alert(this.name);
+alert(User.prototype.sayHi); // sayHi() { alert(this.name); }
113
114
// в прототипе ровно 2 метода
115
alert(Object.getOwnPropertyNames(User.prototype)); // constructor, sayHi
0 commit comments