diff --git a/palindrome/palindrome.js b/palindrome/palindrome.js new file mode 100644 index 00000000..9baa733f --- /dev/null +++ b/palindrome/palindrome.js @@ -0,0 +1 @@ +const palindrome = (str) => str == str.split('').reverse().join('')