
Asked in Capgemini
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...
Top Front end Developer Interview Questions Asked at Capgemini
Q. What is the Context API?
Q. Explain the Redux life cycle.
Q. Write a function to reverse a given array.
Interview Questions Asked to Front end Developer at Other Companies
Top Skill-Based Questions for Capgemini Front end Developer
CSS Interview Questions and Answers
500 Questions
Web Development Interview Questions and Answers
250 Questions
JavaScript Interview Questions and Answers
250 Questions
Algorithms Interview Questions and Answers
250 Questions
HTML Interview Questions and Answers
250 Questions
Data Structures Interview Questions and Answers
250 Questions
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

