Skip to content

Commit 6e122ff

Browse files
author
Coding Money
committed
add toLowerCase to str for vowels
1 parent 7516701 commit 6e122ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: completed_exercises/7-vowels.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function vowels(str) {
1313

1414
let count = 0
1515

16-
for(let char of str){
16+
for(let char of str.toLowerCase()){
1717
if(vowelCheck.includes(char)) count++
1818
}
1919

0 commit comments

Comments
 (0)