Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the whole article working with JSON could do with a rewrite #36446

Open
theking2 opened this issue Oct 22, 2024 · 1 comment
Open

the whole article working with JSON could do with a rewrite #36446

theking2 opened this issue Oct 22, 2024 · 1 comment
Labels
Content:Learn:JavaScript Learning area JavaScript docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@theking2
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON

What specific section or headline is this issue about?

access of members of the json stucture

What information was incorrect, unhelpful, or incomplete?

Ofcourse hero["members"] is proper syntax but so is hero.members. The later much preferred as it uses object member access which is better readable and better documentable.
Suggest to update all the example access codes.

What did you expect to see?

use of object.member access syntax in stead of object["member"] syntax. It blur the border between arrays and objects confusing an apprentice.

Do you have any supporting links, references, or citations?

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@theking2 theking2 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 22, 2024
@github-actions github-actions bot added the Content:Learn:JavaScript Learning area JavaScript docs label Oct 22, 2024
@theking2
Copy link
Author

There is no "other object literals" only strings numbers, true false null are allowed. This is quite a restriction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn:JavaScript Learning area JavaScript docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant