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

Модуль 1 #2

Closed
wants to merge 6 commits into from
Closed

Модуль 1 #2

wants to merge 6 commits into from

Conversation

dansergey
Copy link
Contributor

No description provided.

@jsru-1
Copy link
Contributor

jsru-1 commented Feb 10, 2025

Добавляю преподавателя (@SinimaWath) для код-ревью.

@jsru-1 jsru-1 requested a review from SinimaWath February 10, 2025 20:46
if (!str) {
return '';
} else if (str.lenth == 1) {
return toUpperCase;

Choose a reason for hiding this comment

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

toUpperCase - это переменная которой не существует.

Тут надо вызвать метод:

return str.toUpperCase()

Comment on lines 2 to 6
if (str.toUpperCase().includes('XXX') || str.toUpperCase().includes('1XBET')) {
return true;
} else {
return false;
}

Choose a reason for hiding this comment

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

str.toUpperCase().includes('XXX') || str.toUpperCase().includes('1XBET') - уже возвращает boolean, поэтому:

return str.toUpperCase().includes('XXX') || str.toUpperCase().includes('1XBET')

@jsru-1
Copy link
Contributor

jsru-1 commented Feb 16, 2025

Добавляю преподавателя (@SinimaWath) для код-ревью.

@jsru-1 jsru-1 requested a review from SinimaWath February 16, 2025 18:42
@dansergey dansergey closed this Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants