Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /