javascript-tutorial / javascript-tutorial/en.javascript.info
Not quite complete statement in summary
還沒有人認領這個 Issue。
- 主要語言
- HTML
- 星號
- 25.5k
- 分支
- 4k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
開啟 function-prototype 頁面,並對照連結的 MDN 說明檢視關於 F.prototype 的摘要敘述。釐清函式的 prototype 為 null 或其他非物件值時所記載的行為,然後更新摘要,使其與頁面說明及 MDN 參考一致。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100