Notch interview question

3. Test a palindrome function

Interview Answer

Anonymous

5 July 2021

let func3 = (word) => { let splitWord = word.split(); for (let i = 0, x = 0; i < splitWord.length; i++, x--) { if (splitWord[i] !== splitWord[x]) { return false; } return true; } };