Filter interviews by
useMemo is a hook in React that memoizes the result of a function to optimize performance.
useMemo is used to memoize expensive calculations so they are only re-computed when dependencies change.
It takes a function and an array of dependencies as arguments.
Example: const memoizedValue = useMemo(() => expensiveFunction(), [dependency1, dependency2]);
posted on 10 Feb 2025
Use JavaScript to find repeating alphabets in an array of strings.
Loop through each string in the array
For each string, loop through each character and check if it is repeated
Store the repeating alphabets in a separate array
Angular lifecycle hooks are methods that allow you to tap into specific points in a component's lifecycle.
ngOnChanges: Called when an input property changes
ngOnInit: Called once the component is initialized
ngDoCheck: Called during every change detection run
ngAfterContentInit: Called after content (ng-content) has been projected into the component
ngAfterContentChecked: Called after every check of the projected content
ng...
posted on 16 Dec 2024
I applied via LinkedIn and was interviewed in Nov 2024. There were 2 interview rounds.
Codility consists of two Angular questions: the first involves creating a form, while the second pertains to developing a searchable input field, along with one DSA coding question.
Form validations in Angular are built using Angular forms and validators.
Use Angular forms to create form controls and group them together
Apply built-in validators like required, minlength, maxlength, pattern, etc.
Create custom validators for complex validation requirements
Display error messages based on validation status
Use reactive forms for more control and flexibility
Create a service with a loading state and methods to show/hide loading indicators
Create a loading service with a boolean property 'isLoading'
Add methods in the service to set isLoading to true/false
Inject the loading service in components where loading indicators are needed
posted on 1 Jun 2024
I have used useState, useEffect, useContext, and useRef hooks in my projects.
useState - for managing state in functional components
useEffect - for handling side effects in functional components
useContext - for accessing context in functional components
useRef - for accessing DOM elements or storing mutable values
based on 1 interview
Interview experience
fresher
2.1k
salaries
| ₹0.5 L/yr - ₹7 L/yr |
Software Engineer
326
salaries
| ₹1.3 L/yr - ₹9.3 L/yr |
Software Developer
289
salaries
| ₹1 L/yr - ₹8 L/yr |
Freelancer
188
salaries
| ₹1.5 L/yr - ₹8 L/yr |
Assistant Manager
170
salaries
| ₹2.5 L/yr - ₹11.6 L/yr |
Reliance Industries
Tata Group
Adani Group
Hindustan Unilever