Technical round 1
60 minutes
- Object.freeze
- Anonymous functions
- Hoisting
- How to avoid hoisting (use of let & const)
- Use of arrow functions
- Object.freeze vs const
- == Vs ===
- -0 Vs 0 ( equality check)
- const num1 = 10000; const num2 = 1_00_00; console.log(num1 === num2); (concept of numeric separator)
- Advantages and disadvantages of react
- Webpack and its use
- Types of builder like webpack
- Use ref hook
- Context api
- How to avoid prop drilling (other than context api)
- Functional vs class component. Which is more efficient
- Check if array has a subarray with sum 0
- Remove last character from string (used slice method)
- Reduce vs reduceRight
- Reverse a array
- WAP to calculate => let str = 'a.b.c.d.e'
Output :- { a: { b: { c: { d: e, }, }, }, }
- const getData = () => { console.log(this); };
const obj = { name: 'anuj' };
getData.call(obj);
Technical Round 2
60 minutes
- Closure
- WAP to find whether two strings are anagrams or not
- Polyfill of Filter method in array