We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bonjour, je n'arrive pas à comprendre pourquoi mon code ne fonctionne pas. Pouvez-vous m'expliquer ou est mon erreur, svp ?
function compterVoyelles(mot) { const minuscule = mot.toLowerCase(); let compteur = 0; for (let i = 0; i < minuscule.lenght; i++) { if ( minuscule[i] === "a" || minuscule[i] === "e" || minuscule[i] === "i" || minuscule[i] === "o" || minuscule[i] === "u" ) { compteur++; } } return compteur; } console.log(compterVoyelles("RadAr")); console.log(compterVoyelles("Tic et Tac")); console.log(compterVoyelles("Oasis Oasis Oh"));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bonjour, je n'arrive pas à comprendre pourquoi mon code ne fonctionne pas. Pouvez-vous m'expliquer ou est mon erreur, svp ?
function compterVoyelles(mot) {
const minuscule = mot.toLowerCase();
let compteur = 0;
for (let i = 0; i < minuscule.lenght; i++) {
if (
minuscule[i] === "a" ||
minuscule[i] === "e" ||
minuscule[i] === "i" ||
minuscule[i] === "o" ||
minuscule[i] === "u"
) {
compteur++;
}
}
return compteur;
}
console.log(compterVoyelles("RadAr"));
console.log(compterVoyelles("Tic et Tac"));
console.log(compterVoyelles("Oasis Oasis Oh"));
The text was updated successfully, but these errors were encountered: