- Notifications
You must be signed in to change notification settings - Fork3.9k
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels