Filter interviews by
Top trending discussions
I applied via LinkedIn and was interviewed in Jun 2021. There was 1 interview round.
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.
Variables declared with var are hoisted to the top of their scope
Function declarations are hoisted before variables
Function expressions are not hoisted
Hoisting can lead to unexpected behavior and bugs
Function currying is a technique of transforming a function that takes multiple arguments into a sequence of functions that each take a single argument.
Currying allows partial application of a function.
It helps in creating reusable functions.
Curried functions are composable and can be easily combined to create new functions.
Currying can be achieved using closures or by using libraries like Lodash or Ramda.
Example: cons...
Closures are functions that have access to variables in their outer scope, even after the outer function has returned.
Closures are created when a function is defined inside another function.
The inner function has access to the outer function's variables and parameters.
Closures can be used to create private variables and methods.
Closures can also be used to create functions with pre-set arguments.
I applied via Company Website and was interviewed in May 2021. There were 3 interview rounds.
Pure components, memo, useCallback, and HoC are optimization techniques in React for improving performance.
Pure components are components that only re-render when their props or state change.
memo is a higher order component that memoizes the result of a component rendering, preventing unnecessary re-renders.
useCallback is a hook that memoizes functions, preventing unnecessary re-creations on re-renders.
HoC (Higher Orde...
Counter application using Reactjs
Create a React component for the counter
Use state to keep track of the count
Implement functions to increment and decrement the count
Display the count on the screen
I applied via Naukri.com and was interviewed in Apr 2022. There was 1 interview round.
Closures and hoisting are important concepts in JavaScript.
Closures refer to the ability of a function to access variables in its outer scope even after the function has returned.
Hoisting is the behavior of moving variable and function declarations to the top of their respective scopes.
Example of closures: function outer() { let x = 10; function inner() { console.log(x); } return inner; } const innerFunc = outer(); inn...
I applied via Naukri.com and was interviewed in Apr 2022. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Oct 2022. There were 3 interview rounds.
based on 1 interview experience
based on 1 review
Rating in categories
Software Developer
4
salaries
| ₹2.2 L/yr - ₹8 L/yr |
Full Stack Developer
3
salaries
| ₹3 L/yr - ₹3.5 L/yr |
Reactjs Developer
3
salaries
| ₹2.4 L/yr - ₹3.5 L/yr |
TCS
Accenture
Wipro
Cognizant