Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Explain getting, setting and prototype chians #9750

@adamzerner

Description

@adamzerner

It may be useful to explain that when you set you don't look up the prototype chain and when you get you do look up the chain.

But that setting involves getting to the left of the last dot. Ie.

ChildScope.myObject.aNumber involves getting what's to the left of the last dot (which allows you to look up the chain), and then sets to the result.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions