javascript-tutorial / javascript-tutorial/en.javascript.info
Not quite complete statement in summary
Nessuno ha ancora preso questa issue.
- Lingua principale
- HTML
- Stelle
- 25.5k
- Fork
- 4k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Apri la pagina function-prototype e rivedi l'affermazione riepilogativa su F.prototype insieme alla spiegazione collegata di MDN. Chiarisci il comportamento documentato quando il prototype di una funzione è null o un altro valore non oggetto, quindi aggiorna il riepilogo in modo che sia coerente con la spiegazione della pagina e il riferimento MDN.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100