How to find Palindromes in JS

A common interview question. Here is how to solve it (the easy way).

function isPalindrome(str){

 let reverse = str.split("").reverse().join("");
 
 if (reverse === str){
     console.log('we got a palindrome!');
     return true;
 }
 return false;   
}
 
let test = "neven";
isPalindrome(test);