Skip to content

Instantly share code, notes, and snippets.

@wlizama
Created March 8, 2022 23:31
Show Gist options
  • Save wlizama/fc8a46036fb1b6520543f91f6ec4a720 to your computer and use it in GitHub Desktop.
Save wlizama/fc8a46036fb1b6520543f91f6ec4a720 to your computer and use it in GitHub Desktop.
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