Filter interviews by
I applied via Referral and was interviewed in Aug 2024. There were 2 interview rounds.
To showcase a project to demostrate context api
Event loop is a mechanism in JavaScript that allows for asynchronous operations to be executed in a non-blocking way.
Event loop is responsible for handling asynchronous operations in JavaScript.
It allows for tasks to be queued and executed in a non-blocking manner.
Event loop continuously checks the call stack and the task queue, moving tasks from the queue to the call stack when the stack is empty.
Example: setTimeout()...
Context API is a feature in React that allows sharing data between components without having to pass props through every level of the component tree.
Context API provides a way to pass data through the component tree without having to pass props down manually at every level.
It is useful for sharing global data such as themes, user authentication, or language preferences.
Context API consists of three main parts: Provider...
Prop drilling is the process of passing down props from a parent component to multiple levels of nested child components.
Prop drilling can lead to a lot of unnecessary passing of props through intermediate components.
It can make the code harder to maintain and understand.
One way to avoid prop drilling is by using context API or state management libraries like Redux.
CSR stands for Client-Side Rendering and SSR stands for Server-Side Rendering.
CSR involves rendering web pages on the client side using JavaScript.
SSR involves rendering web pages on the server side and sending the fully rendered page to the client.
CSR is faster for subsequent page loads as it only fetches data, while SSR is slower but better for SEO.
Examples: React uses CSR by default, while Next.js allows for SSR.
Top trending discussions
I applied via Recruitment Consultant and was interviewed in Mar 2021. There were 3 interview rounds.
Event bubbling is the process of propagating an event from the innermost element to its parent elements in the DOM hierarchy.
Events in JavaScript are triggered on elements and then propagate up the DOM tree.
During event bubbling, an event triggered on a child element will also trigger on its parent elements.
This allows for event delegation, where a single event handler can be used for multiple elements.
Event.stopPropag...
I applied via Naukri.com and was interviewed in Nov 2020. There were 3 interview rounds.
Remove duplicate elements from an Array
Use the Set object to remove duplicate elements
Convert the Set back to an array using the spread operator
If the array contains objects, use a custom comparison function
Use the accept attribute in the input tag to only allow jpg and png files.
Add accept attribute to input tag with 'image/jpeg, image/png' value
This will restrict file selection to only jpg and png files
Use flexbox to center align a div in just one line in CSS.
Set the parent container's display property to flex.
Use the justify-content property with the value 'center' to horizontally center the div.
Use the align-items property with the value 'center' to vertically center the div.
Use React Router's Redirect component to redirect to login page if user is not logged in.
Create a PrivateRoute component that checks if user is logged in
If user is not logged in, redirect to login page using Redirect component
Wrap the routes that require authentication with PrivateRoute component
I applied via LinkedIn and was interviewed in Jul 2024. There were 3 interview rounds.
20 MCQs on Aptitude & Quants, can google practice the questions
2 Questions of easy/medium level can select any language and code.
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Micro Frontend architecture is an approach to building front-end applications by breaking them down into smaller, independently deployable units.
Allows different teams to work on separate parts of the application
Each micro frontend can be developed using different technologies
Enables incremental upgrades and updates without affecting the entire application
Can improve performance by loading only the necessary components
...
Pure pipes in Angular are stateless and do not change the input data, while impure pipes can have side effects and change the input data.
Pure pipes are used for simple transformations like formatting dates or numbers.
Impure pipes are used for more complex transformations that require state or side effects.
Pure pipes are faster and more efficient as they only run when a pure change to the input data is detected.
Impure p...
Singleton services can be made multiton by maintaining a map of instances with unique keys.
Create a map to store instances with unique keys
Use a factory method to retrieve instances based on keys
Ensure that only one instance is created per key
Dependency injection is a design pattern where components are given their dependencies rather than creating them internally.
Allows for easier testing by injecting mock dependencies
Promotes loose coupling between components
Improves code reusability and maintainability
Examples: AngularJS, Spring Framework
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
CSS Box-model defines how elements are rendered in a webpage, including padding, border, and margin.
Box-model consists of content, padding, border, and margin
Content area is where text or images are displayed
Padding is the space between content and border
Border is the line around the content and padding
Margin is the space outside the border
Flexbox is for one-dimensional layouts, grid is for two-dimensional layouts.
Flexbox is best for arranging items in a single row or column.
Grid is best for creating complex layouts with rows and columns.
Flexbox is more suitable for smaller scale layouts, while grid is better for larger scale layouts.
Flexbox is more flexible in terms of item order and sizing, while grid provides more control over the overall layout.
Both ...
I applied via Naukri.com and was interviewed before Mar 2023. There was 1 interview round.
based on 1 interview experience
Difficulty level
Duration
Accenture
Capgemini
HCLTech
Teleperformance