Ive had some difficulty with my vowelBonusScore() to calculate for the 3 points along with adding 1 point for the consonants, any thoughts would be helpful and i can provide a snippet of that particular section.
let vowelBonusScore = function(word) {
let vowelBonus = 0;
for (i = 0; i < word.length; i++) {
if (word[i] === “A” || word[i] === “E” || word[i] === “I” || word[i] === “O” || word[i] === “U”) {
vowelBonus += 3;
}
vowelBonus += 1;
}
return vowelBonus;
}