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
In the chapter "Class basic syntax", in the second example of "what is a class" section, on line 15 of the code it is written in the comment that "there are exactly two methods in the prototype" (constructor, sayHi) which I believe is wrong as constructor is a property referencing the constructor function, right? So shouldn't it be "there are exactly two properties" or maybe "two keys"?
In the chapter "Class basic syntax", in the second example of "what is a class" section, on line 15 of the code it is written in the comment that "there are exactly two methods in the prototype" (constructor, sayHi) which I believe is wrong as constructor is a property referencing the constructor function, right? So shouldn't it be "there are exactly two properties" or maybe "two keys"?
Link to the section - https://javascript.info/class#what-is-a-class
The text was updated successfully, but these errors were encountered: