Palindrome Checker, please help

Tell us what’s happening:

I don’t understand what I should do here

Your code so far
No code yet

function palindrome(str) {
return true;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Palindrome Checker

Link to the challenge:

You need to write a function that checks if a word or sentence is the same spelled backward as it is spelled forward.