You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/09-classes/01-class/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ user.sayHi();
142
142
143
143
The result of this definition is about the same. So, there are indeed reasons why `class` can be considered a syntax sugar to define a constructor together with its prototype methods.
144
144
145
-
Although, there are important differences.
145
+
Still, there are important differences.
146
146
147
147
1. First, a function created by `class` is labelled by a special internal property `[[FunctionKind]]:"classConstructor"`. So it's not entirely the same as creating it manually.
0 commit comments