Wipro React.js Developer L1 Interview
1. What is Virtual DOM
2. React Hooks, How to handle lifecycle methods in useEffect
2. Second largest element in an array [11, 42, 85, 33, 22, 34].
3. Output of below code
function outer(){
console.log(a); // o/p
var a = 10;
function inner(){
a++;
console.log(a) // o/p
}
inner()
}
const res = outer()
4. When to use state, context and redux for an application
5. ES6 Features
6. Call, Apply & Bind
7. Output of below code
const numbers = [1, 2, 3, 4, 5, 6];
const sumOfEvens = numbers.reduce((acc, curr) => {
if (curr % 2 === 0) {
return acc + curr;
}
return acc;
}, 0);
8. Closure & Hoisting
Comments
Post a Comment