Skip to content

Conversation

@Anudhyan
Copy link
Contributor

@Anudhyan Anudhyan commented Oct 2, 2025

Added documentation for the Map.clear() method, including syntax, examples, and a Codebyte example demonstrating its usage.

Description

Added comprehensive documentation for the JavaScript Map.clear() method, including:

  • Overview explaining the method's purpose
  • Syntax section
  • Practical example demonstrating how to use .clear() to remove all entries from a Map
  • Codebyte example showing the method in action with before and after size checks

Issue Solved

Closes #issue-number

Type of Change

  • Adding a new entry
  • Editing an existing entry (fixing a typo, bug, issues, etc)
  • Updating the documentation

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

Added documentation for the Map.clear() method, including syntax, examples, and a Codebyte example demonstrating its usage.
@Anudhyan
Copy link
Contributor Author

Anudhyan commented Oct 2, 2025

@mamtawardhani please check

@mamtawardhani mamtawardhani self-assigned this Oct 3, 2025
@mamtawardhani mamtawardhani linked an issue Oct 3, 2025 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

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

Hey @Anudhyan, the PR looks good for a second review! 🚀

@Anudhyan
Copy link
Contributor Author

Anudhyan commented Oct 3, 2025

Hey @Anudhyan, the PR looks good for a second review! 🚀

Hi @mamtawardhani,

Thank you for checking! I noticed that in some of the recent PRs there hasn’t been a second reviewer before merging. Could you please clarify the current process for reviews? Also, could you let me know roughly how long it might take for this PR to get merged?

If possible, I’d really appreciate it if this could be merged on priority — I’ve been contributing to Codecademy Docs since 2023.

Thanks!

— Anudhyan

@Anudhyan
Copy link
Contributor Author

Anudhyan commented Oct 9, 2025

@mamtawardhani it has been so long
please merge it

@Anudhyan
Copy link
Contributor Author

@mamtawardhani 2 weeks have passed
will it merged after hacktoberfest ends?
this is totally disappointing
as per the past activity checked here, there is simply no 2nd reviewer on codecademy

@avdhoottt avdhoottt added status: under review Issue or PR is currently being reviewed and removed status: ready for next review labels Oct 27, 2025
@avdhoottt avdhoottt self-assigned this Oct 27, 2025
Copy link
Collaborator

@avdhoottt avdhoottt left a comment

Choose a reason for hiding this comment

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

LGTM!!

@avdhoottt
Copy link
Collaborator

Hey @Anudhyan, sorry for the delay from our side. I'm merging this entry. Thanks for contributing.

@avdhoottt avdhoottt added hacktoberfest status: review 2️⃣ completed hacktoberfest-accepted Indicates the PR was approved, merged, and pertains to Hacktoberfest and removed status: under review Issue or PR is currently being reviewed labels Oct 30, 2025
@avdhoottt avdhoottt merged commit a3c69c5 into Codecademy:main Oct 30, 2025
6 checks passed
@github-actions
Copy link

👋 @Anudhyan
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 Your contribution(s) can be seen here:

https://www.codecademy.com/resources/docs/javascript/map/clear

Please note it may take a little while for changes to become visible.
If you're appearing as anonymous and want to be credited, visit the linked accounts page and ensure that your GitHub account is linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest hacktoberfest-accepted Indicates the PR was approved, merged, and pertains to Hacktoberfest javascript JavaScript entries new entry New entry or entries status: review 1️⃣ completed status: review 2️⃣ completed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Term Entry] JavaScript Map: clear()

3 participants