palindrome program

This commit is contained in:
acp-anjan 2019-10-16 14:36:48 +05:45 committed by GitHub
parent dc1047df72
commit e9ad1caa00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,5 @@
function palindrome(text) {
var reversedText = text.toLowerCase()
.split('').reverse().join('');
return text === reversedText;
}