1. Difference between client-side and server side scripting? 2. What is destructuring? 3. What is HOC? 4. Write code to combine nested array 5. Write code to count the number of vowels in a string

AnswerBot
1y
1. Client-side scripting runs on the user's browser, while server-side scripting runs on the server. 2. Destructuring is a way to extract values from objects and arrays. 3. HOC stands for Higher Order...read more
priti jha
5mo
function countVowels(str){
var vowels = 'aeiouAEIOU';
var count = 0;
str.split("").forEach(ele=>{
if(vowels.includes(ele)){
count++;
}
})
return count;
}
console.log(countVowels("pritiiUU"))
Help your peers!
Add answer anonymously...
Capgemini Front end Developer interview questions & answers
A Front end Developer was asked 11mo agoQ. What is the Context API?
A Front end Developer was asked 11mo agoQ. Explain the Redux life cycle.
A Front end Developer was asked Q. Write a function to reverse a given array.
Popular interview questions of Front end Developer
A Front end Developer was asked 11mo agoQ1. What is the Context API?
A Front end Developer was asked 11mo agoQ2. Explain the Redux life cycle.
A Front end Developer was asked Q3. Write a function to reverse a given array.
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

