Skip to content

Conversation

@OskinSergey
Copy link
Contributor

@OskinSergey OskinSergey commented Nov 11, 2025

Добавляет ДЗ для проверки функций


🎓 Нужно больше функций

@keksobot keksobot changed the title Добавляет ДЗ для проверки функций Нужно больше функций Nov 11, 2025
@@ -0,0 +1,47 @@
function checkStringLength(str, maxLength) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

давай использовать как можно чаще "стрелочные функции"

эту функцию нам стрелочная позволит написать в одну строку, напиши потом исправление в чатик

function isPalindrome(str) {
const normalizedStr = str.replaceAll(' ', '').toLowerCase();
let reversedStr = '';
for (let i = normalizedStr.length - 1; i >= 0; i--) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

for - хорошо, но давай подумаем про методы массива, какие тут могли бы нам пригодиться для решения задачки

"eslint": "8.48.0",
"eslint-config-htmlacademy": "9.1.1",
"vite": "4.4.9"
"vite": "^4.4.9"
Copy link
Collaborator

Choose a reason for hiding this comment

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

очень рекомендую не фиксировать версии

или тут необходимо было по заданию, но врятли

@keksobot keksobot merged commit 8bc5716 into htmlacademy-javascript:master Nov 12, 2025
1 check failed
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