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.prototype.substr #441

Merged
merged 1 commit into from Apr 13, 2021

Conversation

pymerseme
Copy link
Contributor

В примере используется устаревающий метод String.substr, который может быть убран в ближайшем будущем.
Возможно будущим программистам стоит сразу опираться на заменяющие устаревшему методы - действующие и актуальные, такие как String.substring и String.slice.

Ссылки:
https://developer.mozilla.org/uk/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features#string_methods
https://262.ecma-international.org/9.0/#sec-string.prototype.substr
https://262.ecma-international.org/9.0/#sec-additional-ecmascript-features-for-web-browsers

В примере используется устаревающий метод String.substr, который может быть убран в ближайшем будущем.
Возможно будущим программистам стоит сразу опираться на заменяющие устаревшему методы - действующие и актуальные, такие как String.substring и String.slice.

Ссылки:
https://developer.mozilla.org/uk/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features#string_methods
https://262.ecma-international.org/9.0/#sec-string.prototype.substr
https://262.ecma-international.org/9.0/#sec-additional-ecmascript-features-for-web-browsers
@zhabinka zhabinka merged commit f874e27 into hexlet-basics:master Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants