Filter interviews by
I applied via Walk-in and was interviewed before Aug 2021. There were 2 interview rounds.
Closures are functions that have access to variables in their outer scope. JS has two types of scope - global and local.
Closures allow for data privacy and encapsulation
Global scope variables can be accessed from anywhere in the code
Local scope variables are only accessible within the function they are defined in
To remove duplicates from an array, use the Set object or filter method
Observables are used for asynchronous...
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
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 Naukri.com
DOM stands for Document Object Model, it is a programming interface for web documents. It represents the structure of a document as a tree of objects.
DOM is used to interact with HTML and XML documents in a structured way
It allows developers to manipulate the content, structure, and style of a website dynamically
DOM provides methods and properties to access and modify elements on a web page
Example: document.getElementB...
The output will display the document object in the console.
Typing 'document' in the console will return the document object, which represents the current HTML document.
The document object provides access to the content and structure of the webpage, allowing manipulation of elements and properties.
Form validation can be handled using client-side and server-side validation techniques.
Use HTML5 form validation attributes like required, pattern, min, max, etc.
Implement client-side validation using JavaScript to provide instant feedback to users.
Perform server-side validation to ensure data integrity and security.
Display error messages next to the input fields for better user experience.
Use a combination of front-en...
Redux Toolkit is an official, opinionated, batteries-included toolset for efficient Redux development.
Redux Toolkit simplifies Redux code by providing a set of tools and best practices
It includes utilities like createSlice, createReducer, configureStore, and createAsyncThunk
Helps in writing concise and readable Redux code with less boilerplate
Encourages the use of Immer for writing immutable updates in a more intuitive
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
AOT (Ahead-of-Time) and JIT (Just-in-Time) are compilation techniques used in Angular. Angular and React differ in their architecture and data binding approach. Route guards in Angular are used to control access to routes.
AOT compilation in Angular converts TypeScript code into efficient JavaScript code during the build process, resulting in faster rendering and smaller bundle sizes.
JIT compilation in Angular compiles ...
Angular applications are built using the Angular CLI, which provides a command-line interface for creating, building, and serving Angular projects.
Angular applications are built using the Angular CLI (Command Line Interface)
The Angular CLI provides commands for creating new projects, generating components, services, modules, etc.
To build an Angular application, you can use the 'ng build' command which compiles the appl
I applied via Naukri.com and was interviewed in Apr 2024. There were 2 interview rounds.
Recurrsion tree implementation with angular
Given time aptitude must be cleared
2 codings for 1 hour
I was interviewed in Mar 2024.
1. Client-side scripting runs on the user's browser, while server-side scripting runs on the server. 2. Destructuring is a way to extract values from objects and arrays. 3. HOC stands for Higher Order Component in React. 4. Combining nested arrays involves flattening them into a single array. 5. Counting vowels in a string involves iterating through the characters and checking if they are vowels.
Client-side scripting e...
based on 1 review
Rating in categories
Web Developer
4
salaries
| ₹1 L/yr - ₹3.5 L/yr |
Front end Developer
4
salaries
| ₹3 L/yr - ₹5.4 L/yr |
TCS
Accenture
Wipro
Cognizant