I need help in finding solution to know a string is pallindrome or not , this seems to be a simple one but i need to know if we can make it in a single line code. I tried to use
var numstr = "121"
function checkPallindrome() {
var check = num.split("").reverse.join();
alert(check);
}
But no luck, please guide me if had any mistakes in the code I have written