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

Chapter - Prorotype Methods

Open
#3,408 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
25.5k
Forks
4k
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the tutorial's first section containing the quoted Object.create(animal) example and review how it uses “prototype” and [[Prototype]]. Check the terminology against the JavaScript specification or surrounding tutorial explanations. Done means the section clearly distinguishes the relevant concepts or explains why the existing wording is correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.