Created
March 8, 2022 23:31
-
-
Save wlizama/fc8a46036fb1b6520543f91f6ec4a720 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function solution(inputString) { | |
for(let i = 0; i < inputString.length / 2; i++) { | |
if (inputString[i] != inputString[inputString.length - i - 1 ]) | |
return false; | |
} | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment