`this` is not tied to the function

Open
#5 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Find the section titled “The this of Parent Scopes” in the JavaScriptCheatSheet documentation and read the surrounding explanation. Revise the title and wording so they do not associate this with a scope; done means the explanation is accurate and clear for novices.

Written by the indexing model from the issue text.

Description

help wanted

There's a section called:

The this of Parent Scopes

And it starts by saying:

Since each function has its own this binding, whose value depends on the way it is called, you cannot refer to the this of the wrapping scope in a regular function defined with the function keyword.

This is incorrectly worded. There is no concept at all of "the this of a scope", as it's not associated to a scope. So the title is not correct. Also the explanation will be confusing to novices because it, again, relates this to some wrapping scope.

Dominant language
No language data
Stars
221
Forks
23
PR merge metrics
No merged PRs in 30d

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.

More from alhassy/JavaScriptCheatSheet

All issues in alhassy/JavaScriptCheatSheet

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.