javascript-tutorial / javascript-tutorial/en.javascript.info
Not quite complete statement in summary
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- HTML
- Sterne
- 25.5k
- Forks
- 4k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
https://javascript.info/function-prototype - on this page in the summary we have this statement:
The value of F.prototype should be either an object or null: other values won’t work.
But here we have this statement:
If the prototype of a function is reassigned with something other than an Object, when the function is called with new, the returned object's prototype would be Object.prototype instead. (In other words, new ignores the prototype property and constructs a plain object.)
So I think it's worth mentioning that F.prototype can be equal to null only when Object.prototype, but when you set prototype for F.prototype it's not possible.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Öffne die Seite zu function-prototype und überprüfe die zusammenfassende Aussage zu F.prototype zusammen mit der verlinkten MDN-Erklärung. Kläre das dokumentierte Verhalten, wenn das Prototype einer Funktion null oder ein anderer Nicht-Objekt-Wert ist, und aktualisiere anschließend die Zusammenfassung so, dass sie mit der Erklärung auf der Seite und dem MDN-Verweis übereinstimmt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100