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

change `user` to `userAdmin`

Open
#3,499 0 comments 1 reaction 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

I found one typo in the topic optional chaining.

snippet:

let userAdmin = {
  admin() {
    alert("I am admin");
  }
};

In the below phrase:

Here, in both lines we first use the dot (userAdmin.admin) to get the admin property, because we assume that the userAdmin object exists, so it's safe read from it.

user should be userAdmin cause the obj's name is userAdmin not user.

PS: Thank you for these great docs! A lot of information are well cleared.

Closes: #3498

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 in the optional chaining topic by searching for the quoted phrase and compare it with the nearby userAdmin snippet. Done means the phrase consistently names the object as userAdmin; no specific file or test is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.