I'm trying to write a function that takes another function and then executes it in reverse. And it don't work :( Mistake is: TypeError: isPalindrome is not a function. Where is a problem?
const isPalindrome = (text) => {
let text1 = text.toLowerCase();
let text2 = text1.split('').reverse().join('');
return text1 === text2;
}
const isNotPalindrome = (isPalindrome) => {
!isPalindrome();
};