F
Size: a a a
F
Д
М
B
F
И
F
М
d
И
F
d
d
javascript
function palindrom(str){
str = str.toLowerCase();
const str2 = str
.split('')
.reverse()
.join('');
return str === str2;
}
console.log(palindrom('hello'));
false
d
javascript
function palindrome(str) {
for (let i = 0; i < str.length / 2; i++) {
if (str[i] !== str[str.length - i - 1]) return false;
}
return true;
};
console.log(palindrome('hello'));
false
М
И
5
М
И
АЧ