i
Deloitte
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I was interviewed in Jan 2025.
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope.
Variable declarations are hoisted but not their initializations.
Function declarations are fully hoisted.
Example: console.log(myVar); var myVar = 10; // Output: undefined
Example: console.log(myFunc()); function myFunc() { return 'Hello!'; } // Output: Hello!
Using map function to apply a callback function to each element in an array
Map function is used to iterate over an array and apply a callback function to each element
The callback function can perform operations on each element and return a new value
Example: arr.map(item => item * 2) will double each element in the array
Flexbox is best for one-dimensional layouts, Grid is best for two-dimensional layouts, DOM is the structure of a webpage, Box model is the layout of elements.
Flexbox is best for creating one-dimensional layouts like navigation bars or sidebars.
Grid is best for creating two-dimensional layouts like grids of images or cards.
DOM (Document Object Model) is the structure of a webpage, representing the elements as objects.
Bo...
I was interviewed in Jan 2025.
What people are saying about Deloitte
I applied via Referral and was interviewed in Oct 2024. There was 1 interview round.
Closures are functions that have access to their own scope, as well as the scope in which they were defined.
Closures allow functions to access variables from their outer function even after the outer function has finished executing.
Closures are commonly used in event handlers and callbacks.
Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { console.log(outerVar); }; }
Use infinite scrolling to fetch new content as user scrolls down the page.
Implement infinite scrolling to load more products as user scrolls down
Make AJAX calls to fetch new content from the server
Update the DOM with the new content dynamically
Deloitte interview questions for designations
I applied via Walk-in and was interviewed in Apr 2024. There were 3 interview rounds.
Javascript array questions like palindrom and others with aptitude
Data can be shared between components in React using props, context, or state management libraries like Redux.
Use props to pass data from parent to child components
Use context to share data across multiple components without passing props manually
Use state management libraries like Redux to manage global state and share data between components
Prop drilling is the process of passing data through multiple levels of components in React.
Prop drilling occurs when a component needs to pass data to a deeply nested child component.
It can lead to code that is hard to maintain and understand.
One way to avoid prop drilling is by using Context API or Redux for state management.
Redux is a predictable state container for JavaScript apps.
Redux stores the entire state of an application in a single immutable object.
State changes are made by dispatching actions, which are plain JavaScript objects.
Reducers specify how the application's state changes in response to actions.
Redux flow: Action -> Reducer -> Store -> View
Get interview-ready with Top Deloitte Interview Questions
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.
Error handling in JavaScript involves using try-catch blocks, throwing custom errors, and using error objects.
Use try-catch blocks to catch and handle errors
Throw custom errors using the throw keyword
Use error objects like Error, SyntaxError, TypeError, etc. for specific types of errors
Closure is a function that retains access to variables from its parent scope even after the parent function has finished executing.
Closure allows a function to access and manipulate variables from its outer scope.
It forms a 'closed-over' scope that persists even after the outer function has finished executing.
Closures are commonly used in event handlers, callbacks, and asynchronous code.
Example: function outerFunction(...
I was interviewed in Feb 2024.
2 moderate DSA questions and a Question on React on Api's to fetch data
based on 12 interviews
1 Interview rounds
based on 11 reviews
Rating in categories
Consultant
33.4k
salaries
| ₹6.3 L/yr - ₹23.2 L/yr |
Senior Consultant
21k
salaries
| ₹11 L/yr - ₹42 L/yr |
Analyst
14.3k
salaries
| ₹3.9 L/yr - ₹12.6 L/yr |
Assistant Manager
10.1k
salaries
| ₹7.8 L/yr - ₹24 L/yr |
Manager
7.1k
salaries
| ₹16 L/yr - ₹52 L/yr |
Accenture
PwC
Ernst & Young
Cognizant