📜  检查是否回文 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:22.945000             🧑  作者: Mango

代码示例4
int length = myString.Length;
for (int i = 0; i < length / 2; i++)
{
    if (myString[i] != myString[length - i - 1])
        return false;
}
return true;