i
Blackrock
Filter interviews by
I applied via Recruitment Consulltant and was interviewed before Dec 2021. There were 2 interview rounds.
ReactJS is a JavaScript library for building user interfaces.
Developed by Facebook
Uses a virtual DOM for efficient updates
Supports server-side rendering
Can be used with other libraries and frameworks
Uses JSX syntax to write HTML-like code in JavaScript
Example: Facebook, Instagram, Airbnb, Netflix use ReactJS
UseState() is a hook in React that allows functional components to have state variables.
useState() is used to declare state variables in functional components.
It returns an array with two elements: the current state value and a function to update it.
The function to update the state can be called with a new value or a function that takes the previous value as an argument.
Example: const [count, setCount] = useState(0);
Ex
Top trending discussions
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Merge sort has a time complexity of O(n log n) in the worst case scenario.
Merge sort divides the array into two halves, sorts them recursively, and then merges them back together.
The time complexity of merge sort is O(n log n) in the worst case scenario.
For example, sorting an array of 8 elements would take 3 recursive calls to merge sort.
Create a palindrome checker using React JS to display on the UI
Create a input field for user to enter a string
Use state to store the input string
Create a function to check if the input string is a palindrome
Display the result on the UI
Javascript question on promise, callbacks, hosting
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
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
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.
Interview experience
Analyst
1k
salaries
| ₹5 L/yr - ₹16 L/yr |
Associate
852
salaries
| ₹10 L/yr - ₹36.8 L/yr |
Vice President
350
salaries
| ₹17 L/yr - ₹70 L/yr |
Financial Analyst
137
salaries
| ₹4 L/yr - ₹16 L/yr |
Software Engineer
51
salaries
| ₹10 L/yr - ₹22 L/yr |
Vanguard
State Street Global Advisors
Fidelity Investments
Goldman Sachs