function VowelCount(str) {
var counter=0;
for(i=0; i<str.length; i++)
{
if (/[AEIOUaeiou]/g.test(str[i]))
{
counter += 1;
}
}
return counter;
}
VowelCount("aaaeeebziiiooouu");
これは、repl.it では "14" を返しますが、coderbyte では "7" しか返しません。
私は何を逃したのですか?