Skip to content

Commit 7b76185

Browse files
committed
closes #2524
1 parent b2bff50 commit 7b76185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ alert(typeof User); // function
110110
alert(User === User.prototype.constructor); // true
111111

112112
// The methods are in User.prototype, e.g:
113-
alert(User.prototype.sayHi); // alert(this.name);
113+
alert(User.prototype.sayHi); // the code of the sayHi method
114114

115115
// there are exactly two methods in the prototype
116116
alert(Object.getOwnPropertyNames(User.prototype)); // constructor, sayHi

0 commit comments

Comments
 (0)