Accenture
BigBasket Interview Questions and Answers
Q1. How do you make a page responsive. Bootstrap layouts and alerts
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 responsive embeds for videos and other media
Use Bootstrap's respons...read more
Q2. what is the need of de structuring syntax
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;
Q3. Flat the array without using the inbuilt methods
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
Q4. Why is arrow function used
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.
Q5. How React Works?
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 components in a more declarative way.
Q6. How Redux Works?
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: dispatching an action to add an item to a shopping cart.
More about working at Accenture
Interview Process at BigBasket
Top Reactjs Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month