function isPalyndrome (texte) { return (texte.split(" ").join("").toLowerCase() == texte.split(" ").join("").toLowerCase().split("").reverse().join("")); } // Exemples : isPalyndrome("Elu par cette crapule"); // Vrai isPalyndrome("abcdefg"); // Faux