Filter interviews by
DOM stands for Document Object Model. It is a programming interface for web documents. We can change HTML tags using JavaScript by manipulating the DOM.
DOM is a tree-like structure that represents the HTML document as a hierarchy of objects.
We can access and modify HTML elements using methods like getElementById, getElementsByClassName, etc.
To change HTML tags, we can use properties like innerHTML, innerText, or create...
Data can be passed from parent to child component in React using props.
Parent component can pass data to child component by including it as a prop in the child component's JSX tag.
The child component can access the passed data using the props object.
Data can be passed as a string, number, boolean, object, or even a function.
Example:
Top trending discussions
I was interviewed in Jan 2025.
Semantic tags in HTML are specific tags that provide meaning to the content they enclose.
Semantic tags help search engines and screen readers understand the structure of a webpage.
Examples of semantic tags include <header>, <footer>, <nav>, <article>, <section>, <aside>, <main>, <figure>, <figcaption>.
Using semantic tags improves SEO and accessibility of a website.
Currying is a technique in functional programming where a function with multiple arguments is transformed into a sequence of nested functions, each taking a single argument.
Currying helps in creating reusable functions and partial application.
It allows you to create new functions by fixing some parameters of an existing function.
Example: const add = (a) => (b) => a + b; add(2)(3) will return 5.
Map is used to transform each element of an array, while Filter is used to select elements based on a condition.
Map returns a new array with the same length as the original array, but with each element transformed based on a provided function.
Filter returns a new array with only the elements that pass a provided condition function.
Example for Map: [1, 2, 3].map(num => num * 2) will result in [2, 4, 6].
Example for Fi...
Map creates a new array with the results of calling a provided function on every element, while forEach executes a provided function once for each array element.
Map returns a new array with the same length as the original array, while forEach does not return anything.
Map does not mutate the original array, while forEach can mutate the original array.
Map is more suitable for transforming data and creating a new array, w...
Authentication verifies the identity of a user, while authorization determines the user's access rights.
Authentication confirms the user's identity through credentials like username and password.
Authorization determines what actions the authenticated user is allowed to perform.
Authentication precedes authorization in the security process.
Example: Logging into a website (authentication) and then accessing specific pages
Local storage persists even after the browser is closed, while session storage is cleared when the browser is closed.
Local storage has no expiration date, while session storage expires when the browser is closed.
Local storage stores data with no limit, while session storage has a limit of around 5MB.
Local storage data is available across all windows/tabs for that domain, while session storage data is only available wit...
I applied via Referral and was interviewed in Nov 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Aug 2024. There were 2 interview rounds.
Online Hackathon test was taken.
I am a passionate React Js Frontend Developer with experience in building user-friendly and responsive web applications.
Experienced in developing web applications using React Js
Proficient in HTML, CSS, and JavaScript
Familiar with state management libraries like Redux
Strong understanding of responsive design principles
Ability to work collaboratively in a team environment
I am responsible for developing and maintaining the frontend of the project using React Js.
Developing user-friendly interfaces using React Js
Implementing responsive design and ensuring cross-browser compatibility
Collaborating with backend developers to integrate frontend with backend services
Optimizing application performance and troubleshooting issues
Participating in code reviews and providing feedback to team members
SSR in React is implemented using server-side rendering to pre-render React components on the server before sending them to the client.
Use libraries like Next.js or Gatsby to implement SSR in React.
Configure server to render React components on the server side.
Optimize server-side rendering for performance by caching rendered components.
To change a React project from development mode to production mode, you need to build the project using the 'npm run build' command.
Run 'npm run build' command in the terminal to create a production build of the project.
This command will generate a 'build' folder with optimized and minified files for production.
You can then deploy the contents of the 'build' folder to a web server for production use.
Lazy loading is a technique used to defer loading non-essential resources until they are needed.
Lazy loading helps improve performance by only loading resources when they are required.
In React, lazy loading can be implemented using React.lazy() and Suspense components.
Example: const MyComponent = React.lazy(() => import('./MyComponent'));
Example:
React routing is a way to handle navigation in a React application by defining routes and rendering components based on the URL.
React routing allows for declarative routing, where routes are defined using JSX elements.
It enables dynamic routing based on the URL, allowing for different components to be rendered based on the route.
React Router is a popular library for handling routing in React applications.
Unlike convent...
I applied via Naukri.com and was interviewed in Nov 2024. There were 2 interview rounds.
Even after answering all the questions correctly along with coding done with exact expected output you will get rejected becoz they are fake job interview or eye wash campaign it’s better to avoid.
posted on 4 Oct 2024
I applied via Approached by Company and was interviewed in Sep 2024. There was 1 interview round.
Debounce delays the execution of a function until after a specified time period, while throttling limits the rate at which a function can be executed.
Debounce waits for a specified time period of inactivity before executing the function, while throttling limits the rate at which the function can be called.
Debounce is useful for scenarios like search bars where you want to wait for the user to finish typing before makin...
SOAP (Simple Object Access Protocol) was used before Rest APIs for web services communication.
SOAP was a protocol for exchanging structured information in the implementation of web services.
SOAP used XML for message format and relied heavily on HTTP for communication.
SOAP was more rigid and complex compared to Rest APIs, which are more lightweight and flexible.
Examples of SOAP-based web services include Microsoft's .NE
posted on 4 May 2024
I applied via Approached by Company and was interviewed in Apr 2024. There were 3 interview rounds.
Custom hooks in React allow for reusable logic across components.
Custom hooks are functions that use React hooks internally and can be reused across multiple components.
They can encapsulate complex logic and state management, making components more modular and easier to maintain.
Example: A custom hook for fetching data from an API and handling loading and error states can be used in multiple components.
Example: A custo...
posted on 8 Mar 2024
I applied via Referral and was interviewed in Feb 2024. There was 1 interview round.
Promises in JavaScript are objects representing the eventual completion or failure of an asynchronous operation.
Promises 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.
Promises can be created using the Promise constructor or by using async/await syntax.
useState is used to manage state in functional components, while useEffect is used to perform side effects in functional components.
useState is used to declare state variables in functional components.
useEffect is used to perform side effects in functional components, such as data fetching, subscriptions, or manually changing the DOM.
useState does not trigger re-renders, while useEffect can be used to trigger re-render...
Callback hell is a situation where multiple nested callbacks make the code difficult to read and maintain.
Occurs when multiple asynchronous operations are nested within each other
Leads to deeply nested code structure which is hard to understand
Can be avoided by using Promises, async/await, or modularizing code
Traditional functions are defined using the function keyword, while arrow functions are defined using a concise syntax with =>.
Traditional functions are hoisted, while arrow functions are not.
Arrow functions do not have their own 'this' keyword, they inherit it from the parent scope.
Arrow functions are more concise and easier to read compared to traditional functions.
Traditional functions are better for methods in obje...
Creating a counter in React to increment and decrement a value.
Create a state variable to store the count value
Use setState to update the count value
Render the count value in the component
Add buttons to increment and decrement the count value
Program to find frequency of letters in a string
Create an object to store the frequency of each letter
Loop through the string and increment the count of each letter in the object
Convert the object into an array of strings with letter and frequency pairs
Iterate through the given string to check if the substring is present.
Iterate through the given string and check if each character matches the first character of the substring.
If a match is found, check the subsequent characters to see if they form the substring.
Return true if the entire substring is found within the given string, otherwise return false.
I applied via Recruitment Consulltant and was interviewed in Jul 2024. There was 1 interview round.
based on 1 interview
Interview experience
Software Developer
17
salaries
| ₹3.6 L/yr - ₹8.4 L/yr |
Software Engineer
9
salaries
| ₹4 L/yr - ₹8 L/yr |
Senior Software Developer
6
salaries
| ₹9.9 L/yr - ₹21 L/yr |
Java Developer
4
salaries
| ₹3 L/yr - ₹5.6 L/yr |
Product Manager
4
salaries
| ₹8.6 L/yr - ₹11.2 L/yr |
TCS
Infosys
Wipro
HCLTech