I recently interviewed with EY India for a Frontend Developer role. Here’s my experience and the questions asked in the 1st round.
- What are nested routes? Give pseudocode for it's syntax.
- Syntax of UseEffect Clean up?
- Difference b/w useEffect Hook & UseLayoutEffect Hook?
- What is useImperativeHandle Hook ?
- What is a Promise ? Give Pseudo code for it's syntax.
- Difference b/w Promise.allSetteled and Promise.race ?
- What is ContextAPI?
- What are Web Components?
- What is an Outlet?
- How to focus an input field without using Js onFocus in React, so that it's in focus when the page renders for the first time?
- Write pseudocode for Lazy Loading ?
- Difference b/w React.memo and useMemo ?
- Write code to Remove duplicates from string.
- Write code to Reverse the characters of words in a sentence.
- Given a scenario where you have multiple APIs to call parallely, what will I do?
- What is an event loop?
- You are given an api endpoint to fetch the results, take an user input, according to the user input, the api endpoint should change dynamically.
- O/p Question
console.log(a);
var a = 10;
function test() {
console.log(a);
var a = 20;
console.log(a);
}
test();
console.log(a);
- O/p Question
bar();
var bar = function() {
console.log('Hi');
};
- What are Web Vitals ?
- What is Diffing Algorithm ?
- Difference b/w Shallow Copy and Deep Copy ?
- How can we achieve Deep Copy?