how to take a string as an argument and say if it is a palindrome code example
Example: check if palindrome
function isPalindrome(str) {
str = str.toLowerCase();
return str === str.split("").reverse().join("");
}
function isPalindrome(str) {
str = str.toLowerCase();
return str === str.split("").reverse().join("");
}