const findVowels = str => {
let count = 0
const vowels = ['a', 'e', 'i', 'o', 'u']
for(
let char of str.toLowerCase()) { if(vowels.includes(char)) {
count++
} }
return count
}
const findVowels = str => {
let count = 0
const vowels = ['a', 'e', 'i', 'o', 'u']
for(
let char of str.toLowerCase()) { if(vowels.includes(char)) {
count++
} }
return count
}
Which method is used to retrieve a character from a certain index?
Explain Hoisting in javascript
Write the code for dynamically inserting new components
Difference between var and let keyword in javascript
Is JavaScript a pass-by-reference or pass-by-value language?
Why do we use the word “debugger” in javascript?
What do mean by prototype design pattern?
What is NaN property in JavaScript?
What are the types of errors in javascript?
What do you mean by BOM in Javascript?
Is javascript a statically typed or a dynamically typed language?
Why do we use callbacks in Javascript?
What are the primitive data types in JavaScript?