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

String slice description implies string mutability #33516

Closed
leumasme opened this issue May 9, 2024 · 1 comment · Fixed by #33882
Closed

String slice description implies string mutability #33516

leumasme opened this issue May 9, 2024 · 1 comment · Fixed by #33882
Labels
Content:JS JavaScript docs good first issue A good issue for newcomers to get started with.

Comments

@leumasme
Copy link

leumasme commented May 9, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice

What specific section or headline is this issue about?

Description

What information was incorrect, unhelpful, or incomplete?

Changes to the text in one string do not affect the other string.

What did you expect to see?

JS strings are immutable. There is no way to "change the text of the one string", thus this statement makes no sense.

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

Such a statement is also not present on similar functions like substring
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@leumasme leumasme added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 9, 2024
@github-actions github-actions bot added the Content:JS JavaScript docs label May 9, 2024
@Josh-Cena
Copy link
Member

Sure, let's remove that.

@Josh-Cena Josh-Cena added good first issue A good issue for newcomers to get started with. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs good first issue A good issue for newcomers to get started with.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants