This commit is contained in:
Manjunath s 2024-07-17 10:43:25 +09:00 committed by GitHub
commit 07525d56ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,11 @@
function checkPalindrome(str){
if(str.split('').reverse().join('') == str)
return true;
else
return false;
}
if (checkPalindrome("madam") !== true)
console.log("Test fails: Expected true for input str = 'madam'");
else
console.log("Sample test case for input str = 'madam' passed!");