i
Mastek
Filter interviews by
Callbacks are functions passed as arguments, promises represent eventual completion of an asynchronous operation, async await is syntactic sugar for promises.
Callbacks are functions passed as arguments to be executed after a certain task is completed.
Promises represent the eventual completion of an asynchronous operation and allow chaining of multiple asynchronous operations.
Async await is syntactic sugar for promises,...
React has three main phases in its life cycle: Mounting, Updating, and Unmounting.
Mounting: Component is created and inserted into the DOM.
Updating: Component is re-rendered when props or state change.
Unmounting: Component is removed from the DOM.
Top trending discussions
I applied via Company Website and was interviewed in Oct 2024. There were 3 interview rounds.
ES6 is the latest version of ECMAScript with new features like arrow functions, classes, and template literals.
Arrow functions provide a more concise syntax for writing functions.
Classes allow for easier object-oriented programming in JavaScript.
Template literals make it easier to work with strings by allowing interpolation and multiline strings.
Creating react componont with api integration, list rendering and adding custom filterals
Coding exercise, custom hooks, UI related quetions
posted on 2 Jan 2025
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
React js state and useeffect
I applied via Approached by Company and was interviewed in Jan 2024. There was 1 interview round.
Duration was 1 hr and topics were css html react js vs code IDE it was a good experience
posted on 5 Jun 2024
I applied via Referral and was interviewed before Jun 2023. There was 1 interview round.
posted on 25 May 2022
I applied via Approached by Company and was interviewed in Apr 2022. There were 2 interview rounds.
Observables are a way to handle asynchronous data streams in Angular.
Observables are similar to Promises, but can emit multiple values over time.
They can be created using the RxJS library.
They can be used for handling user input, HTTP requests, and other asynchronous operations.
Operators can be used to transform, filter, and combine observables.
Subscriptions are used to listen for emitted values and handle errors and c
Interfaces without methods can be implemented using type aliases.
Type aliases can be used to define a shape of an object without any methods.
Type aliases can be used to define a shape of an object with optional properties.
Type aliases can be used to define a shape of an object with readonly properties.
Type aliases can be used to define a shape of an object with union types.
posted on 27 Feb 2024
I applied via Company Website and was interviewed before Feb 2023. There were 2 interview rounds.
Started with a normal assignment. A basic form application with few operation
Threads of javascript refer to the concept of asynchronous programming in JavaScript. Architecture in this context likely refers to the overall structure and organization of a React Native application.
JavaScript is single-threaded, meaning it can only execute one piece of code at a time. Asynchronous programming allows for non-blocking operations, improving performance and user experience.
React Native architecture typi...
posted on 28 Jul 2022
Remove duplicate elements from an array of strings
Create a new Set from the array to remove duplicates
Convert the Set back to an array using the spread operator
Alternatively, use filter() and indexOf() to remove duplicates
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 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.
CSS positions include static, relative, absolute, fixed, and sticky.
Static - default position, elements are positioned according to the normal flow of the document
Relative - positioned relative to its normal position
Absolute - positioned relative to the nearest positioned ancestor
Fixed - positioned relative to the viewport
Sticky - acts like a combination of relative and fixed positioning
Semantic tags are HTML tags that clearly define the content they contain for better accessibility and SEO.
Semantic tags provide meaning to the content they enclose, making it easier for search engines to understand the structure of the page.
Examples of semantic tags include
Using semantic tags improves the accessibility of the website for users with disabilities, as screen readers can interp
Promise chaining is a technique in JavaScript where multiple asynchronous operations are chained together to execute sequentially.
Allows for handling multiple asynchronous operations in a more readable and organized way
Each promise in the chain returns a new promise, allowing for further chaining
Helps avoid callback hell by nesting promises inside each other
Example: promise1.then(result => { return promise2; }).then(re
Virtual DOM is a lightweight copy of the actual DOM that React uses to improve performance by minimizing direct manipulation of the actual DOM.
Virtual DOM is a concept in React where a lightweight copy of the actual DOM is created and updated in memory.
When changes are made to the virtual DOM, React compares it with the actual DOM and only updates the necessary parts, reducing the number of direct manipulations to the ...
Synthetic events in React are events that are normalized by React to ensure consistent behavior across different browsers.
Synthetic events are instances of the SyntheticEvent object in React.
They are cross-browser compatible and have the same interface as native events.
They are used to handle events like onClick, onChange, etc. in React components.
Example:
Redux is a predictable state container for JavaScript apps.
Redux is a state management tool commonly used with React to manage the application's state in a predictable way.
It helps in maintaining a single source of truth for the state of the entire application.
Redux follows a unidirectional data flow, making it easier to understand how data changes over time.
Actions are dispatched to update the state in Redux, and redu...
Hooks in React are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8.
They allow you to use state and other React features in functional components.
Some commonly used hooks are useState, useEffect, useContext, and useReducer.
useMemo is used for memoizing values, while useCallback is used for memoizing functions.
useMemo is used to memoize a value and only recompute it when its dependencies change.
useCallback is used to memoize a function instance and only re-create it when its dependencies change.
Example: useMemo can be used to memoize the result of a complex computation, while useCallback can be used to memoize a callback function passed t
posted on 2 Jan 2025
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
React js state and useeffect
Senior Software Engineer
550
salaries
| ₹5.7 L/yr - ₹22 L/yr |
Software Engineer
401
salaries
| ₹2.7 L/yr - ₹8.5 L/yr |
Associate Consultant
283
salaries
| ₹2 L/yr - ₹9 L/yr |
Software Specialist
264
salaries
| ₹7.9 L/yr - ₹30 L/yr |
Consultant 1
190
salaries
| ₹3.4 L/yr - ₹9.2 L/yr |
TCS
Infosys
Wipro
HCLTech