Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hreroku

const vowels = ['a', 'b', 'c', 'e', 'f','g', 'h', 'i', 'j','i']
function countVowels(value){
	let count = 0
    let letters = Array.from(value)
    
    vowels.forEach(values=>{
    	if(letters.includes(values)){
        	count++
        }
    })
	
	return count
}
console.log(countVowels('biraj'))
 
PREVIOUS NEXT
Tagged: #hreroku
ADD COMMENT
Topic
Name
5+5 =