Q31. What is a pure function?
A **pure function** is a function whose output depends only on its input arguments and produces no side effects. This means that given the same inputs, a pure function wi...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (1,100 available).
A **pure function** is a function whose output depends only on its input arguments and produces no side effects. This means that given the same inputs, a pure function wi...
The _Virtual DOM_ works in five simple steps. **1. Initial Render** When a UI component renders for the first time, it returns JSX. React uses this structure to create a ...
Some of the major benefits of pure functions are listed below, - **Easier testing:** Since output depends only on input, pure functions are simple to test. - **Predictabi...
The _Shadow DOM_ is a browser technology designed primarily for scoping variables and CSS in _web components_. The _Virtual DOM_ is a concept implemented by libraries in ...
The `let` keyword in JavaScript is used to declare a **block-scoped local variable**. This means that variables declared with `let` are only accessible within the block, ...
**React Fiber** is the **new reconciliation engine** in React, introduced in React 16. It’s a complete rewrite of React’s core algorithm(old stack-based algorithm) for re...
You can list out the differences in a tabular format | var | let | | -------------------------------------------------------------- | ------------------------------------...
The goal of _React Fiber_ is to increase its suitability for areas like animation, layout, and gestures. Its headline feature is **incremental rendering**: the ability to...
The keyword `let` was chosen because it originates from mathematical notation, where "let" is used to introduce new variables (for example, "let x = 5"). This term was ad...
A **controlled component** is a React component that **fully manages the form element's state**(e.g, elements like ``, ``, or ``)) using React's internal state mechanism....
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.