We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a25cf8b commit b81d169Copy full SHA for b81d169
problem63/problem63.js
@@ -0,0 +1,22 @@
1
+/* =================================================
2
+ ------ Programme for Finding Palindrome --------
3
+ ================================================= */
4
+
5
6
+ const findPalindrome = value => {
7
+ const valueIntoStr = value.toString();
8
+ const valueIntoReverseStr = valueIntoStr.split("").reverse().join("");
9
10
+ if(valueIntoStr === valueIntoReverseStr){
11
+ const message = `Your input text is "${value}" which is a "Palindrome".`;
12
+ console.log(message);
13
+ }
14
+ else{
15
+ const message = `Your input text is "${value}" which is "Not A Palindrome".`;
16
17
18
19
20
+ findPalindrome("eye");
21
+ findPalindrome("madam");
22
+ findPalindrome("Shourav");
0 commit comments