Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update Map usage explanation in article.md #3903

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

Open
ayush007-git wants to merge 2 commits into javascript-tutorial:master
base: master
Choose a base branch
Loading
from ayush007-git:patch-1

Conversation

@ayush007-git
Copy link

@ayush007-git ayush007-git commented Nov 10, 2025

Clarify the correct usage of Map methods and explain the implications of using map[key].

Clarify the correct usage of Map methods and explain the implications of using map[key].
@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Nov 10, 2025
Copy link

CLAassistant commented Nov 10, 2025
edited
Loading

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the documentation about Map usage by clarifying what happens when using bracket notation (map[key]) instead of the proper Map methods. The update replaces a brief warning with a detailed explanation and concrete code example.

Key changes:

  • Expanded explanation of why map[key] should be avoided, clarifying that it adds properties to the Map object itself rather than storing data in the Map collection
  • Added a practical code example demonstrating the difference between bracket notation and proper Map methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@smith558 smith558 self-assigned this Nov 12, 2025
Accepted the changes from the review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

Labels

review needed Review needed, please approve or request changes

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /