We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f763f89 commit c731bccCopy full SHA for c731bcc
1 file changed
Easy-Programming-Challenges/VowelCount.js
@@ -0,0 +1,15 @@
1
+function VowelCount(str) {
2
+
3
+ var vow = "aeiou";
4
+ var count = 0;
5
+ var arr = vow.split("");
6
7
+ for(var i=0; i<str.length; i++){
8
+ for(var q in arr){
9
+ if (str[i] == arr[q]){
10
+ count++;
11
+ }
12
13
14
+ return count;
15
+}
0 commit comments