Skip to content

Commit 6883a09

Browse files
shashi-rajat2013anurag
authored andcommitted
added palindrome.js (hacktoberfest17#1143)
1 parent 67f5f8e commit 6883a09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

numbers/palindrome/palindrome.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//Javascript function to detect whether a string is palindrome or not
2+
3+
var isPalindrome = (inputString) => inputString === inputString.split("").reverse().join("");

0 commit comments

Comments
 (0)