79838518

Date: 2025-12-05 03:19:09
Score: 1
Natty:
Report link

This compares the i-th character from the start with the i-th character from the end.

if (str[i] !== str[len - 1 - i])

str[i] from the front

str[len - 1 - i] from the back

If they don’t match, the string is not a palindrome.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Goat Programmer 999