javascript-tutorial / javascript-tutorial/en.javascript.info
Chapter - Prorotype Methods
未關閉
還沒有人認領這個 Issue。
- 主要語言
- HTML
- 星號
- 25.5k
- 分支
- 4k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
In the first section. your reference to 'prototype' is confusing and, if I understand the concept correctly, incorrect:
let animal = {
eats: true
};
// create a new object with animal as a **prototype**
let rabbit = Object.create(animal); // same as {__proto__: animal}
In this example:
- rabbit's [[Prototype]] property is set to animal
It's unfortunate that the JS specification used the same word for two different concepts, b/c I think even experts like you guys occasionally conflate the two terms.
Am I missing sth?
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從教學中包含所引用 Object.create(animal) 範例的第一節開始,檢查其中如何使用「prototype」和 [[Prototype]]。將術語與 JavaScript 規範或教學周圍的說明進行核對。當該小節清楚地區分相關概念,或說明現有措辭為何正確時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100