Find no. of vowels(a,e,i,o,u) in a string
(Javascript) *ex. →vowelsCount(‘*hi there*’) → 3* ### Sol. 1 vowelsCount = (str) => { let count = 0; for (let char of str) { if (‘aeiou’.includes(char.toLowerCase())) { count++ } } console.log(count) return count; } vowelsCount(‘hi there...
Apr 3, 20211 min read13



