javascript-tutorial / javascript-tutorial/en.javascript.info
Class checking: "instanceof" misleading sentence and example.
- Lingua principale
- HTML
- Stelle
- 25.5k
- Fork
- 4k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Great tutorial, thanks so much!
Since the comment section was removed, just wanted to add here a correction. In the parragraph: "It also works with constructor functions:" the example below is not a constructor function. What you are using is precisely an instance of Rabbit, but in the form of "new Rabbit()". It could be misleading to say that the instanceof operator works with constructor functions.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Individua la sezione del tutorial che contiene la frase “It also works with constructor functions:” e il relativo esempio `new Rabbit()`. Leggi la spiegazione circostante di `instanceof`, quindi correggi la formulazione fuorviante e la distinzione nell’esempio; il lavoro è completato quando il passaggio descrive accuratamente su cosa opera `instanceof`.
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
- 45/100