Filter interviews by
Flatten an array without using inbuilt methods
Use recursion to iterate through the array and flatten it
Create a new array to store the flattened elements
Check if each element is an array, if so, recursively call the function to flatten it
Sorting objects by age involves comparing age properties and rearranging them in ascending or descending order.
Use the JavaScript `sort()` method to sort the array of objects.
Example: `array.sort((a, b) => a.age - b.age)` for ascending order.
For descending order, use: `array.sort((a, b) => b.age - a.age)`.
Ensure the age property exists in each object to avoid errors.
Destructuring syntax allows for easy extraction of values from arrays or objects in JavaScript.
Simplifies code by providing a concise way to extract multiple values from arrays or objects
Improves readability and maintainability of code
Can be used in function parameters to destructure objects directly
Example: const person = { name: 'John', age: 30 }; const { name, age } = person;
Arrow functions are used for concise syntax, lexical scoping of 'this', and implicit return of single expressions.
Arrow functions have a more concise syntax compared to traditional function expressions.
Arrow functions do not bind their own 'this' value, instead they inherit 'this' from the containing scope.
Arrow functions automatically return the result of a single expression without needing the 'return' keyword.
What people are saying about Accenture
React is a JavaScript library for building user interfaces that uses a virtual DOM to efficiently update the UI.
React creates a virtual DOM to represent the UI components.
When state or props change, React compares the virtual DOM with the actual DOM and updates only the necessary parts.
React uses a component-based architecture to build reusable UI elements.
React uses JSX, a syntax extension for JavaScript, to writ...
Redux is a predictable state container for JavaScript apps.
Redux stores the entire state of the application in a single immutable object.
Actions are dispatched to describe state changes.
Reducers specify how the state changes in response to actions.
Components can subscribe to the Redux store to access the state.
Redux helps manage the state of complex applications and makes it easier to debug and test.
Example: dispa...
useState manages state, while useEffect handles side effects in functional components.
useState initializes state: const [count, setCount] = useState(0);
useEffect runs side effects: useEffect(() => { document.title = `Count: ${count}`; }, [count]);
useState can hold any data type: const [user, setUser] = useState({ name: '', age: 0 });
useEffect can mimic lifecycle methods: useEffect(() => { fetchData(); }, [])...
A reusable React form component that dynamically generates fields and displays inputs in a table format.
Use React's state to manage form data dynamically.
Utilize a mapping function to render form fields based on an array of field definitions.
Implement a submit handler to process the form data.
Display the form inputs in a table format using HTML table elements.
Example of field definitions: [{ label: 'Name', type: '...
To make a page responsive, use Bootstrap layouts and alerts.
Use Bootstrap's grid system to create responsive layouts
Use media queries to adjust the layout based on screen size
Use Bootstrap's responsive utility classes to hide/show elements on different devices
Use Bootstrap's responsive navigation components for mobile-friendly menus
Use Bootstrap's responsive images to ensure they scale properly
Use Bootstrap's resp...
Flatten an array without using inbuilt methods
Use recursion to iterate through the array and flatten it
Create a new array to store the flattened elements
Check if each element is an array, if so, recursively call the function to flatten it
Sorting objects by age involves comparing age properties and rearranging them in ascending or descending order.
Use the JavaScript `sort()` method to sort the array of objects.
Example: `array.sort((a, b) => a.age - b.age)` for ascending order.
For descending order, use: `array.sort((a, b) => b.age - a.age)`.
Ensure the age property exists in each object to avoid errors.
useState manages state, while useEffect handles side effects in functional components.
useState initializes state: const [count, setCount] = useState(0);
useEffect runs side effects: useEffect(() => { document.title = `Count: ${count}`; }, [count]);
useState can hold any data type: const [user, setUser] = useState({ name: '', age: 0 });
useEffect can mimic lifecycle methods: useEffect(() => { fetchData(); }, []); for...
Arrow functions are used for concise syntax, lexical scoping of 'this', and implicit return of single expressions.
Arrow functions have a more concise syntax compared to traditional function expressions.
Arrow functions do not bind their own 'this' value, instead they inherit 'this' from the containing scope.
Arrow functions automatically return the result of a single expression without needing the 'return' keyword.
Destructuring syntax allows for easy extraction of values from arrays or objects in JavaScript.
Simplifies code by providing a concise way to extract multiple values from arrays or objects
Improves readability and maintainability of code
Can be used in function parameters to destructure objects directly
Example: const person = { name: 'John', age: 30 }; const { name, age } = person;
I applied via Referral and was interviewed before Jun 2023. There was 1 interview round.
React is a JavaScript library for building user interfaces that uses a virtual DOM to efficiently update the UI.
React creates a virtual DOM to represent the UI components.
When state or props change, React compares the virtual DOM with the actual DOM and updates only the necessary parts.
React uses a component-based architecture to build reusable UI elements.
React uses JSX, a syntax extension for JavaScript, to write com...
Redux is a predictable state container for JavaScript apps.
Redux stores the entire state of the application in a single immutable object.
Actions are dispatched to describe state changes.
Reducers specify how the state changes in response to actions.
Components can subscribe to the Redux store to access the state.
Redux helps manage the state of complex applications and makes it easier to debug and test.
Example: dispatchin...
I applied via Naukri.com and was interviewed in Apr 2022. There was 1 interview round.
I applied via Naukri.com and was interviewed in Aug 2021. There were 4 interview rounds.
To make a page responsive, use Bootstrap layouts and alerts.
Use Bootstrap's grid system to create responsive layouts
Use media queries to adjust the layout based on screen size
Use Bootstrap's responsive utility classes to hide/show elements on different devices
Use Bootstrap's responsive navigation components for mobile-friendly menus
Use Bootstrap's responsive images to ensure they scale properly
Use Bootstrap's responsiv...
I applied via Company Website and was interviewed in Apr 2021. There were 3 interview rounds.
A reusable React form component that dynamically generates fields and displays inputs in a table format.
Use React's state to manage form data dynamically.
Utilize a mapping function to render form fields based on an array of field definitions.
Implement a submit handler to process the form data.
Display the form inputs in a table format using HTML table elements.
Example of field definitions: [{ label: 'Name', type: 'text'...
I applied via LinkedIn and was interviewed in Jun 2021. There was 1 interview round.
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.
Variables declared with var are hoisted to the top of their scope
Function declarations are hoisted before variables
Function expressions are not hoisted
Hoisting can lead to unexpected behavior and bugs
useEffect is a hook in React that allows you to perform side effects in functional components.
It replaces componentDidMount, componentDidUpdate, and componentWillUnmount.
It takes two arguments: a function that performs the side effect and an array of dependencies.
The function is called after every render, unless the dependencies haven't changed.
Common use cases include fetching data, setting up event listeners, and upd...
Function currying is a technique of transforming a function that takes multiple arguments into a sequence of functions that each take a single argument.
Currying allows partial application of a function.
It helps in creating reusable functions.
Curried functions are composable and can be easily combined to create new functions.
Currying can be achieved using closures or by using libraries like Lodash or Ramda.
Example: cons...
Closures are functions that have access to variables in their outer scope, even after the outer function has returned.
Closures are created when a function is defined inside another function.
The inner function has access to the outer function's variables and parameters.
Closures can be used to create private variables and methods.
Closures can also be used to create functions with pre-set arguments.
based on 4 interview experiences
Difficulty level
Duration
based on 4 reviews
Rating in categories
Application Development Analyst
39.3k
salaries
| ₹4.8 L/yr - ₹11 L/yr |
Application Development - Senior Analyst
27.7k
salaries
| ₹8.3 L/yr - ₹16.1 L/yr |
Team Lead
26.6k
salaries
| ₹12.6 L/yr - ₹22.5 L/yr |
Senior Analyst
19.5k
salaries
| ₹9.1 L/yr - ₹15.7 L/yr |
Senior Software Engineer
18.5k
salaries
| ₹10.4 L/yr - ₹18 L/yr |
TCS
Cognizant
Capgemini
Infosys