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
}
What do you mean by strict mode in javascript and characteristics of javascript strict-mode?
Methods to create an object in javascript
What is NaN property in JavaScript?
Write the code for dynamically inserting new components
What do mean by prototype design pattern?
Is JavaScript a pass-by-reference or pass-by-value language?
Write the code to find the vowels
Is javascript a statically typed or a dynamically typed language?
Explain Hoisting in javascript
Which method is used to retrieve a character from a certain index?
Difference between var and let keyword in javascript
Why do we use the word “debugger” in javascript?
Difference between prototypal and classical inheritance in Javascript