Palindrome exercise

Tell us what’s happening:
Hey guys, could you please tell me why this is not the right way to do it, the code seems logical.

Your code so far

function palindrome (str) {
   if (str === palindrome)      { 
  
  return true;
   
   } else {
     
  
  return false;
   }  

}

palindrome("eye");

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/check-for-palindromes

JavaScript doesn’t understand what a palindrome is, you can’t just ask it if something is a palindrome.

function lotteryNumbers() {
  return lotteryNumbers;
}