javascript-tutorial / javascript-tutorial/en.javascript.info
change `user` to `userAdmin`
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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