i
Indium Software
Filter interviews by
useState is for managing state within a component, useContext is for sharing state between components, and redux is for managing global state across the application.
useState is a React hook used to manage state within a functional component
useContext is a React hook used to share state between components without prop drilling
Redux is a state management library that allows for managing global state across the applicatio...
The difference between == and === in JavaScript
== is the equality operator in JavaScript, which performs type coercion before comparing two values
=== is the strict equality operator, which does not perform type coercion and compares both value and type
Using === is generally considered safer and more predictable than using ==
Example: 1 == '1' will return true, but 1 === '1' will return false
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
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.
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 29 Nov 2023
I applied via Naukri.com and was interviewed in Oct 2023. There were 3 interview rounds.
Implement a data structure and algorithm for finding repeated elements in an array.
Use a hash map to store the frequency of each element in the array.
Iterate through the array and update the frequency in the hash map.
Return the elements with frequency greater than 1 as the repeated elements.
Implementing DSA for sorting array of strings
Use a sorting algorithm like bubble sort, selection sort, or merge sort
Compare strings using built-in comparison functions or custom comparison functions
Ensure the sorting algorithm is efficient and handles edge cases
Css3 questions JavaScript also. Login page and positions and dsa for flattened the nested array
He had given JavaScript questions first & he asked about the output of that questions topics related is like - function, async & await, setTimeout.
Q1. const transaction = [
{id: 1, amount: 100, type: "credit"},
{id: 2, amount: -50, type: "debit" },
{id: 3, amount: 200, type: "credit"},
{id: 4, amount: -150, type: "debit"},
{id: 5, amount: 50, type: "credit"}
];
const threshold = 100;
O/P - {
balance: 150,
exceededTransactions: [1, 3, 4, 5]
}
Q2. Anagrams
I/P: ["abc", "bca", "cat", "act"]
O/p - [["abc", "bca"],["cat","act"]]
2 problems, coding problems, java script
Write code to check palindrome no. Sime basic react js task
I applied via Recruitment Consulltant and was interviewed in Aug 2023. There was 1 interview round.
Type is used for defining custom data types in TypeScript, while interface is used for defining object shapes.
Type is more flexible and can be used to define unions, intersections, and primitive types.
Interface is more focused on defining the shape of an object and can be extended or implemented by other interfaces.
Type can also be used to create aliases for existing types, while interface cannot.
Example: type Person =...
Progressive web apps are web applications that provide a native app-like experience to users, with features like offline access and push notifications.
Progressive web apps use modern web capabilities to provide a user experience similar to native apps.
They are reliable, load quickly, and work offline.
They can be installed on the user's device and send push notifications.
Examples include Twitter Lite, Flipkart Lite, and
posted on 18 Nov 2021
I was interviewed in May 2021.
Functional components are simpler and easier to test, while class components have more features and better performance.
Functional components are stateless and use hooks for state management.
Class components have lifecycle methods and can hold state.
Functional components are easier to read and write.
Class components have better performance in certain scenarios.
Functional components are recommended for simple UI componen...
Props are inputs passed to React components. There are two types: ownProps and childrenProps.
ownProps are passed directly to the component from its parent
childrenProps are passed to the component through its children
ownProps can be accessed using this.props in the component
childrenProps can be accessed using this.props.children in the component
Redux is a predictable state container for JavaScript apps.
Redux is a state management library for JavaScript applications.
It provides a centralized store to manage the state of an application.
Redux follows a unidirectional data flow pattern.
Actions are dispatched to update the state in the store.
Reducers are pure functions that update the state based on the dispatched actions.
Selectors are used to retrieve data from t...
based on 1 review
Rating in categories
Test Engineer
956
salaries
| ₹1.4 L/yr - ₹7.5 L/yr |
Senior Test Engineer
640
salaries
| ₹3.5 L/yr - ₹11.4 L/yr |
Softwaretest Engineer
230
salaries
| ₹2 L/yr - ₹8.4 L/yr |
Test Associate
218
salaries
| ₹1 L/yr - ₹5.5 L/yr |
Senior Software Engineer
173
salaries
| ₹6.5 L/yr - ₹25 L/yr |
TCS
Infosys
Wipro
HCLTech