i
Whatfix
Filter interviews by
I applied via Referral and was interviewed in May 2024. There were 2 interview rounds.
Higher Order Component is like a magic spell that can make any component do special things.
HOC is a function that takes a component and returns a new component with added functionality
It's like adding a superpower to a regular component
For example, a HOC can add authentication or data fetching capabilities to a component
Class components have access to lifecycle methods and state, while functional components are simpler and more lightweight.
Class components have access to lifecycle methods such as componentDidMount, componentDidUpdate, componentWillUnmount, etc.
Class components have the ability to hold and manage local component state.
Functional components are simpler, more lightweight, and easier to read and test.
Functional components...
A Todo system in React for managing tasks and deadlines
Use React state to manage the list of tasks
Create components for adding, editing, and deleting tasks
Implement functionality for marking tasks as completed
Include a filter option for viewing completed and pending tasks
Top trending discussions
I applied via Campus Placement and was interviewed in Feb 2024. There were 2 interview rounds.
Question are very tough and faad
Question like trees linked list and graphs
I applied via Referral and was interviewed in Feb 2024. There was 1 interview round.
Pagination component to display a list of items with page navigation.
Create a Pagination component with props for total number of items, items per page, and current page.
Calculate total number of pages based on total items and items per page.
Display page numbers with previous and next buttons to navigate through pages.
Update the list of items displayed based on current page.
Handle click events on page numbers and previ
A polyfill for JS promise is a piece of code that provides support for promises in older browsers.
Create a Promise class with resolve, reject, then, and catch methods
Implement the executor function to handle the asynchronous operation
Use setTimeout to simulate asynchronous behavior
Handle chaining of then and catch methods
I applied via Walk-in and was interviewed in May 2023. There were 4 interview rounds.
Aptitude is generally ask some MCQ choice questions like time, speed, distance etc
Front end developer have some knowledge in HTML CSS javascript php so ask this language
GD is nothing but it's testing our community and quality of thought in your opinion
I applied via Naukri.com and was interviewed in Nov 2022. There were 2 interview rounds.
Debouncer and throttle are techniques used to limit the frequency of function calls.
Debouncing delays the execution of a function until a certain amount of time has passed without the function being called again.
Throttling limits the frequency of function calls to a certain rate, executing the function at fixed intervals.
Debouncing is useful for events that may be triggered multiple times in quick succession, such as r...
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 easier to compose and chain
Example: const add = (a) => (b) => a + b; add(2)(3) returns 5
Curry function is a higher-order function that allows partial application of arguments.
Currying transforms a function that takes multiple arguments into a series of functions that take one argument each.
It returns a new function until all the arguments are received and then executes the original function.
Example: const add = (a, b) => a + b; const curriedAdd = curry(add); curriedAdd(2)(3) returns 5.
promise.all() is a method that takes an array of promises and returns a new promise that resolves when all promises in the array have resolved.
It is used to handle multiple asynchronous operations simultaneously.
If any of the promises in the array rejects, the returned promise will be rejected with the reason of the first rejected promise.
The resolved values of the promises are returned as an array in the same order as
Memoization is a technique of caching the results of a function to improve performance.
Memoization is used to avoid redundant calculations by storing the results of a function and returning the cached result when the same inputs occur again.
It is commonly used in recursive functions and functions with expensive computations.
Memoization can be implemented manually or by using libraries like Lodash or Memoizee.
Example: M...
Closure is a function that has access to its parent scope even after the parent function has returned.
Closure allows for private variables and functions in JavaScript.
It is created when a function returns another function.
The inner function has access to the outer function's variables and parameters.
Example: function outer() { let x = 10; return function inner() { console.log(x); } }
The inner function can access and mo...
Closures can cause memory leaks if not handled properly.
Closures can hold references to variables outside of their scope, preventing them from being garbage collected.
If closures are used excessively or not released properly, they can cause memory leaks.
To avoid memory leaks, make sure to release closures when they are no longer needed.
There is no difference between class based components and class based components.
There seems to be a typo in the question.
Assuming the question is about functional components vs class components, the major difference is that class components use a class to define the component while functional components are defined as functions.
Class components have access to lifecycle methods while functional components do not.
Functi...
Shallow copy only copies the reference to an object while deep copy creates a new object with a new memory address.
Shallow copy is faster and uses less memory than deep copy.
In shallow copy, changes made to the original object will reflect in the copied object as well.
Deep copy creates a completely new object with its own memory space.
In JavaScript, arrays and objects are assigned by reference, so a shallow copy will o...
Deep copy creates a new object with the same values as the original object.
Use Object.assign() method to create a deep copy of an object.
For nested objects, use recursion to copy all levels.
For arrays, use slice() method to create a new array with the same values.
Avoid using spread operator for deep copy as it only creates a shallow copy.
I applied via Referral and was interviewed before Apr 2023. There were 3 interview rounds.
Find the maximum sum path in a tree from root to leaf node.
Start from the root node and traverse down to leaf nodes, keeping track of the sum at each node.
At each node, compare the sum of the current path with the maximum sum found so far.
Choose the path with the maximum sum as the final result.
Create a simple timer using React
Use state to store the timer value
Use setInterval to update the timer every second
Display the timer value in the component's render method
I was interviewed in Sep 2021.
Round duration - 60 Minutes
Round difficulty - Medium
Mostly focused on Data Structure & Algorithm
Given Linked List : 1 2...
Find the length of the Linked List to check whether the ‘K’ is greater than the Length of the Linked List or not. Take a modulo of ‘K’ with its length if it is greater than the length. Reach the (‘K’+1)th node from last and change the pointers of nodes to get a rotated Linked List.
Here is the algorithm:
Use an array ‘ARR’ to store the words in ‘STR’. Traverse the string ‘STR’ and append each word at the end of ‘ARR’. Use the string ‘RES’ to store the answer. Traverse the array ‘ARR’ in reverse and append the words in ‘ARR’ to ‘RES’ followed by a whitespace character.
Round duration - 50 Minutes
Round difficulty - Medium
JavaScript core concepts with some examples and problem discussion
Round duration - 30 Minutes
Round difficulty - Easy
Tip 1 : JavaScript from javascript.info and Akshay Saini videos
Tip 2 : Practise CSS styling for big web apps like Amazon, Flipkart etc
Tip 3 : Practice writing custom hooks and react code optimization.
Tip 1 : Write skills which you know only and be confident about it.
Tip 2 : Also, do mention the project's that you have done in your current company or as a part of your self learning.
Solution Engineer
46
salaries
| ₹5.3 L/yr - ₹19 L/yr |
Customer Success Manager
32
salaries
| ₹16 L/yr - ₹32 L/yr |
Business Development Representative
22
salaries
| ₹8 L/yr - ₹21 L/yr |
Software Development Engineer II
19
salaries
| ₹17 L/yr - ₹46.5 L/yr |
Project Manager
18
salaries
| ₹18 L/yr - ₹35 L/yr |
Freshworks
Zoho
Druva
Postman