Skip to content

Исправление неточности в решении #1906

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

Closed
wants to merge 1 commit into from

Conversation

mrkqstn
Copy link
Contributor

@mrkqstn mrkqstn commented Oct 15, 2023

Пароль проверять так:

Если введён пароль «Я главный», то выводить «Здравствуйте!»,
Иначе – «Неверный пароль»,
При отмене – «Отменено».

В задании отсутсвует условие на случай если пользователь ничего не ввел в поле для пароля.
Сам код в решении при этом имеет следующее условие:

} else if (pass === '' || pass === null) {
    alert( 'Отменено' );

Предлагается заменить на новое условие соответсвующее условию в задании:

} else if (pass === null) {
    alert( 'Отменено' );

Так же отправил pull-request с вариантом корректировки в в тексте задания
#1905

@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Oct 15, 2023
@javascript-translate-bot javascript-translate-bot requested a review from a team October 15, 2023 19:24
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Member

@Alexandre887 Alexandre887 left a comment

Choose a reason for hiding this comment

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

Непонятно, для чего нужен этот PR, если предыдущий (#1905) уточняет описание задачи.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review needed Review needed, please approve or request changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants