javascript-tutorial / javascript-tutorial/en.javascript.info
Wrong term used in class article
- Dominant language
- HTML
- Stars
- 25.5k
- Forks
- 4k
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Open the linked “Class basic syntax” article and inspect the second example in the “what is a class” section, especially line 15. Check the terminology used for the prototype entries, update the comment if needed, and confirm the example describes the class structure accurately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100