Filter interviews by
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.
Variable declarations are hoisted to the top of their scope but not their initializations.
Function declarations are fully hoisted, meaning they can be called before they are declared.
Hoisting can lead to unexpected behavior if not understood properly.
Throttling is a technique used to control the rate at which a function is executed.
Throttling limits the number of times a function can be called over a specified period of time.
It helps in optimizing performance by preventing excessive function calls, especially in scenarios like scroll events or API requests.
Example: Throttling can be used to limit the rate at which a user can resize a window, ensuring smoother perfo
Debouncing is a technique used to limit the number of times a function is called in a short period of time.
Debouncing is often used in scenarios like search bars where you want to wait for the user to finish typing before making an API call.
It involves setting a delay before executing a function after the last time it was called.
Debouncing helps in optimizing performance by reducing unnecessary function calls.
Example: ...
Event coupling is the dependency between different parts of a system based on events.
Event coupling occurs when one component triggers an event that another component listens for.
It can lead to tight coupling between components, making the system harder to maintain.
Reducing event coupling can be achieved by using a centralized event bus or implementing a pub/sub pattern.
Example: A button click event in a UI component t
Use Set to remove duplicates from array of strings
Create a Set from the array to automatically remove duplicates
Convert the Set back to an array to get unique values
Example: const arr = ['apple', 'banana', 'apple', 'orange']; const uniqueArr = [...new Set(arr)];
Reverse a linked list by changing the direction of pointers
Create three pointers: prev, current, next
Iterate through the linked list, updating pointers to reverse the direction
Return the new head of the reversed linked list
Closure function is a function defined inside another function, with access to the outer function's variables.
Closure functions have access to the outer function's variables even after the outer function has finished executing.
They can be used to create private variables and functions in JavaScript.
Example: function outerFunction() { let outerVar = 'I am outer'; function innerFunction() { console.log(outerVar); } retur
I applied via Referral and was interviewed in Sep 2023. There were 2 interview rounds.
Top trending discussions
posted on 10 Jul 2024
I applied via LinkedIn and was interviewed in Jun 2024. There was 1 interview round.
Callbacks are functions passed as arguments to another function to be executed later
Callbacks are commonly used in event handling, asynchronous programming, and functional programming
Callbacks can be synchronous or asynchronous
Example: passing a callback function to a setTimeout() function
posted on 26 Mar 2024
posted on 23 Feb 2024
I applied via Naukri.com and was interviewed in Jan 2024. There was 1 interview round.
Easy interview about react js and redux . asked write code to fetch api and do some routing
posted on 26 Mar 2024
I applied via Campus Placement and was interviewed in Sep 2023. There were 3 interview rounds.
Pretty easy when strong in logical
General coding questions
Based on the latest react version.
I applied via Naukri.com and was interviewed in Jan 2024. There was 1 interview round.
I applied via LinkedIn and was interviewed in May 2022. There were 3 interview rounds.
posted on 3 Oct 2023
I applied via Naukri.com and was interviewed before Oct 2022. There were 4 interview rounds.
based on 2 interviews
Interview experience
Senior Software Engineer
71
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
61
salaries
| ₹0 L/yr - ₹0 L/yr |
QA Engineer
21
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
16
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
15
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech