This commit is contained in:
Anjan Chandra Paudel 2024-07-17 10:38:30 +09:00 committed by GitHub
commit ddfff2346a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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