It is failing because the word rhythm has no vowels and your code is not designed to handle that
///It is in this block of code where the error is coming from
while (j<=result.length) {
if (result[j].match(/[aeiou]/gi)) {
break;
}
j = j + 1;
value = value + 1;
}
Force myself as much and as hard as possible(this one took me about 5 hours) to solve the challenge with my own previous knowledge even if it generates this complex solutions
or
Force myself a little bit for some minutes and if I can not solve then, look at the solutions, and move forward
There is no need to rush and complete a challenge, if you can’t find a working solution immediately that is fine, and sometimes you just need to step away and do something else. Go back and look at some lessons, ask people on the fcc forum, search stack overflow, and last of all it never hurts to read some documentation. Learning code is not a race, but as someone who started learning code for a job profession I can absolutely understand wanting to just get everything done, and know everything, but it takes time, and that amount of time it takes is exactly as long as it takes you.