Filter interviews by
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.
Exam...
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 ...
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.
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 compon...
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); } ...
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
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 21 Aug 2024
Decent questions asked in the online mcq test
Redux is a predictable state container for JavaScript apps, while Context API is a feature in React for passing data through the component tree.
Redux is more suitable for larger applications with complex state management needs.
Context API is simpler to use and is built into React, reducing the need for additional libraries.
Redux provides a single source of truth for the application state, making it easier to debug and ...
posted on 19 Feb 2024
I applied via Approached by Company and was interviewed in Jan 2024. There were 2 interview rounds.
Focused on JS questions
React is a JavaScript library for building user interfaces.
React is a declarative, efficient, and flexible JavaScript library for building user interfaces.
It allows developers to create reusable UI components.
React uses a virtual DOM to improve performance by only updating the necessary parts of the actual DOM.
React follows a unidirectional data flow, making it easier to understand how data changes over time.
React can ...
posted on 24 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There were 3 interview rounds.
Performance optimization techniques for React JS frontend development
Use React.memo for optimizing functional components
Avoid unnecessary re-renders by using shouldComponentUpdate or PureComponent for class components
Implement code splitting to reduce initial load time
Use lazy loading for components that are not immediately needed
Optimize images and assets for faster loading times
Minimize the use of inline styles and u...
I applied via Naukri.com and was interviewed in Jul 2020. There were 4 interview rounds.
Generator functions are functions that can be paused and resumed, allowing for lazy evaluation of data.
Generator functions use the yield keyword to pause execution and return a value.
They can be used to generate an infinite sequence of values.
They are memory efficient as they only generate values when needed.
Example: function* myGenerator() { yield 1; yield 2; yield 3; }
Example: const infiniteGenerator = function*() { ...
Push notifications can be implemented in Android and iOS using Firebase Cloud Messaging (FCM) and Apple Push Notification service (APNs) respectively.
For Android, integrate FCM SDK in the app and use FCM console to send notifications.
For iOS, create an APNs certificate, configure the app to receive notifications, and use APNs to send notifications.
Both platforms require handling of notification payload in the app to di...
I used React Native for my last app.
Developed UI components using React Native
Integrated APIs to fetch and display data
Implemented Redux for state management
Used Firebase for authentication and database
Optimized app performance using React Native Debugger
Functional components are stateless and return UI elements based on input props, while non-functional components have state and can change UI based on user interaction.
Functional components are simpler and easier to test than non-functional components.
Non-functional components can have state and lifecycle methods, while functional components cannot.
Examples of functional components include buttons, labels, and icons, w...
I applied via Campus Placement and was interviewed in Dec 2024. There was 1 interview round.
2 questions of DSA medium to hard
I applied via Google and was interviewed in Aug 2023. There were 4 interview rounds.
Coding questions about array and string.
Cosing questions about sql and ds.
posted on 17 Oct 2024
I applied via Walk-in
To implement a queue using a stack, use two stacks and simulate the queue operations.
Use two stacks, one for enqueue operation and one for dequeue operation.
For enqueue operation, simply push elements onto the stack used for enqueueing.
For dequeue operation, if the dequeue stack is empty, pop all elements from enqueue stack and push onto dequeue stack.
Then pop from the dequeue stack to simulate dequeue operation.
A linked list is a data structure consisting of nodes where each node points to the next node in the sequence.
Create a Node class with data and next pointer
Initialize a head pointer to null
Add nodes by updating next pointers
Traverse the list by following next pointers
based on 2 interview experiences
Difficulty level
Duration
Senior Software Engineer
88
salaries
| ₹19.9 L/yr - ₹35 L/yr |
Software Engineer
74
salaries
| ₹9.9 L/yr - ₹19 L/yr |
Senior Devops Engineer
26
salaries
| ₹20.9 L/yr - ₹62 L/yr |
QA Engineer
22
salaries
| ₹7 L/yr - ₹16 L/yr |
Software Developer
18
salaries
| ₹5.3 L/yr - ₹20 L/yr |
Maxgen Technologies
JoulestoWatts Business Solutions
Value Point Systems
F1 Info Solutions and Services