javascript-tutorial / javascript-tutorial/en.javascript.info

Class checking: "instanceof" misleading sentence and example.

未關閉
#3,747 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
HTML
星號
25.5k
分支
4k
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

找到包含句子“It also works with constructor functions:”及其 `new Rabbit()` 範例的教學章節。閱讀 `instanceof` 周圍的說明,然後修正具有誤導性的措辭以及範例中的區別;完成標準是該段準確描述 `instanceof` 的操作對象。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
documentation
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。