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.
Coding a frontend UI from provided image. And creating a fucntional star rating system
Designing a Component API in React using Typescript involves defining props, state, and methods for the component.
Define the props interface to specify the expected input data for the component
Use typescript types to ensure type safety and prevent runtime errors
Define the state interface to manage the internal state of the component
Implement methods to handle user interactions and component logic
Document the component
Function to clear all timer ids at once
Create an array to store all timer ids
Iterate through the array and clear each timer id using clearTimeout() function
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Reactive form and crud operations pipes crud operations
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
posted on 25 Oct 2024
I applied via Naukri.com and was interviewed in Feb 2024. There was 1 interview round.
DOM stands for Document Object Model, which is a programming interface for web documents.
DOM is a representation of the structure of a web page, allowing scripts to dynamically access and update the content, structure, and style of the page.
It provides a way for scripts to interact with the elements on a web page, such as changing text, styles, and attributes.
DOM is hierarchical, with elements nested inside other eleme...
Promises in TypeScript are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in a more readable and manageable way.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained using .then() to handle success and .catch() to handle errors.
Example: const myPromise = new Promise((resolve, reject) => { ...
Hooks in JavaScript are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8 to allow functional components to have state and lifecycle methods.
useState() is a hook that allows you to add state to functional components.
useEffect() is a hook that allows you to perform side effects in functional components.
Custom hooks are functions that allow you to reuse
Generate an array of prime numbers from 1 to 100.
Iterate from 1 to 100 and check if each number is prime
A prime number is only divisible by 1 and itself
Start with a list of prime numbers and check divisibility
posted on 29 Nov 2024
2 DSA questions. Both medium level difficult
Accenture
Capgemini
HCLTech
Teleperformance