Filter interviews by
I applied via Company Website and was interviewed before Feb 2023. There was 1 interview round.
var, let, and const are keywords used to declare variables in JavaScript.
var is function-scoped and can be redeclared and reassigned
let is block-scoped and can be reassigned but not redeclared
const is block-scoped and cannot be reassigned or redeclared
Closure is a feature in JavaScript that allows a function to access variables from its outer scope even after the function has finished executing.
Closure is created when a function is defined inside another function.
The inner function has access to the variables and parameters of the outer function.
The inner function can still access the variables even after the outer function has returned.
Closure is useful for creatin...
Hoisting is a JavaScript behavior where variable and function declarations are moved to the top of their scope.
Variable declarations are hoisted but not their initializations.
Function declarations are fully hoisted.
Hoisting can lead to unexpected behavior if not understood properly.
The box model is a concept in CSS that describes how elements are rendered on a web page.
The box model consists of four components: content, padding, border, and margin.
The content refers to the actual content of the element, such as text or images.
Padding is the space between the content and the border.
Border is a line that surrounds the padding and content.
Margin is the space outside the border, separating the elemen...
Padding is the space inside an element, while margin is the space outside an element.
Padding is used to create space between the content and the border of an element.
Margin is used to create space between elements or between an element and its parent or sibling elements.
Padding affects the size of the content area, while margin affects the positioning of the element.
Padding can be set individually for each side (top, r...
I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.
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 was 1 interview round.
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Reactive form and crud operations pipes crud operations
React JS is a JavaScript library for building user interfaces.
React is component-based, allowing for reusable UI elements.
Uses a virtual DOM for efficient updates to the actual DOM.
Supports server-side rendering for improved performance.
Uses JSX syntax to write HTML within JavaScript code.
State management is handled using props and state.
Angular is a popular front-end framework developed by Google for building dynamic web applications.
Angular is based on TypeScript, a superset of JavaScript.
It uses a component-based architecture for building reusable UI components.
Angular provides features like data binding, dependency injection, and routing.
It has a powerful CLI for scaffolding and managing projects.
Angular has a large ecosystem of libraries and tools
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
var and const are used to declare variables in JavaScript, with var being mutable and const being immutable.
var is used to declare variables that can be reassigned and updated
const is used to declare variables that cannot be reassigned or updated
let is another keyword used for declaring variables, similar to var but with block scope
Error boundary is a React component that catches JavaScript errors anywhere in a component tree and logs those errors.
Error boundaries are React components that catch JavaScript errors in their child component tree.
They are used to prevent the entire UI from crashing due to a single error.
Error boundaries work like a JavaScript catch {} block, but for components.
They are defined using componentDidCatch lifecycle method
The 'never' type in TypeScript represents a value that will never occur.
Used to indicate that a function will not return a value
Commonly used in union types to exclude certain values
Helps catch potential errors at compile time
I have used React hooks such as useState, useEffect, useContext, and useRef in my projects.
useState
useEffect
useContext
useRef
useReducer is preferred for managing complex state logic, while useState is simpler for basic state management.
useReducer is more suitable for managing complex state logic and multiple state values
useState is simpler and more straightforward for basic state management with a single value
useReducer allows for more organized and centralized state updates through actions and reducers
useState is commonly used for simple co
Data can be passed from parent to child components in React using props.
Pass data as props from parent component to child component
Use state management libraries like Redux or Context API for complex data sharing
Use callback functions to pass data from child to parent components
Custom hook to fetch data from an API
Create a function that uses the useState and useEffect hooks
Use the fetch API to make a request to the desired endpoint
Return the fetched data and loading state in an array
Map, filter, and reduce are higher-order functions in JavaScript used to manipulate arrays.
Map: Transforms each element in an array and returns a new array with the transformed elements.
Example: [1, 2, 3].map(num => num * 2) returns [2, 4, 6].
Filter: Returns a new array with elements that pass a certain condition.
Example: [1, 2, 3].filter(num => num > 1) returns [2, 3].
Reduce: Applies a function against an accumulator ...
To clone an object in JavaScript, you can use the spread operator or Object.assign() method.
Use the spread operator to create a shallow copy of an object: const clonedObj = { ...originalObj };
Use Object.assign() method to create a shallow copy of an object: const clonedObj = Object.assign({}, originalObj);
For deep cloning, you can use libraries like Lodash or write a custom function to recursively clone nested objects.
Event propagation consists of three stages: capturing, target, and bubbling.
Capturing phase: Events are captured from the outermost element to the target element.
Target phase: Event reaches the target element where the event originated.
Bubbling phase: Events bubble up from the target element to the outermost element.
Errors in a React application can be handled by using error boundaries, try-catch blocks, and displaying error messages to users.
Use error boundaries to catch errors in components and display a fallback UI
Wrap code that may throw errors in try-catch blocks to handle exceptions
Use libraries like React Error Boundary to easily implement error handling
Display error messages to users to inform them about the issue and poss
I applied via Referral
Backend Developer
4
salaries
| ₹2 L/yr - ₹3 L/yr |
Graphic Designer
4
salaries
| ₹1.2 L/yr - ₹2 L/yr |
Environmental Scientist
3
salaries
| ₹6.5 L/yr - ₹6.5 L/yr |
React Developer
3
salaries
| ₹3 L/yr - ₹3 L/yr |
TCS
Infosys
Wipro
HCLTech