Skip to content

Commit 25e05eb

Browse files
authored
Create isPalindrome.js
Add javascript implementation for isPalindrome.
1 parent c6caf28 commit 25e05eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Strings/isPalindrome.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default function isPalindrome(inputString) {
2+
const reversedString = inputString.split("").reverse().join("");
3+
return inputString === reversedString;
4+
}

0 commit comments

Comments
 (0)