We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6422cb8 commit d72c70fCopy full SHA for d72c70f
02_palindrome/index.js
@@ -1,3 +1,12 @@
1
+// --- Directions
2
+// Given a string, return true if the string is a palindrome
3
+// or false if it is not. Palindromes are strings that
4
+// form the same word if it is reversed. *Do* include spaces
5
+// and punctuation in determining if the string is a palindrome.
6
+// --- Examples:
7
+// palindrome("abba") === true
8
+// palindrome("abcdefg") === false
9
+
10
11
// Solution 1
12
// Reverse the string and store the result in an variable than compare string to the reversed value
0 commit comments