// Should Check if the argument passed is a string function isPalindrome(str){ return typeof str === "string" ? str.split("").reverse().join("") === str : "Value is not a type string"; }