Function that returns true if the count of vowels in word is prime
function isValidString ( word ) { let cnt = 0 ; for ( let i = 0 ; i < word . length ; i ++ ) { if ( isVowel ( word [ i ] ) ) { cnt ++ ; } }