Count the vowels · 모음 문자 세기
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
Count the vowels
Count the vowels (a e i o u) in a String, treating upper- and lower-case the same. Lower-case it first with s.toLowerCase(), then loop with s.charAt(i) and compare against each vowel.
Complete countVowels(String s) so it returns how many letters are vowels (a, e, i, o, u), ignoring case. · countVowels(String s)를 완성하여 모음(a, e, i, o, u)인 문자의 개수를 대소문자를 무시하고 반환하도록 하십시오.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.