Q651. What is the output of below spread operator array?
```javascript [..."John Resig"]; ``` The output of the array is ['J', 'o', 'h', 'n', ' ', 'R', 'e', 's', 'i', 'g'] **Explanation:** The string is an iterable type and the...
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).
```javascript [..."John Resig"]; ``` The output of the array is ['J', 'o', 'h', 'n', ' ', 'R', 'e', 's', 'i', 'g'] **Explanation:** The string is an iterable type and the...
Both **Higher-Order Components (HOCs)** and **Hooks** let you reuse logic across components, but they solve that problem in very different ways. | Aspect | Higher-Order C...
Yes, postMessages can be considered very secure as long as the programmer/developer is careful about checking the origin and source of an arriving message. But if you try...
**No.** `React.memo` only performs a shallow comparison of a component's **props** — it has no visibility into context. If a component reads a value via `useContext`/`Con...
The second argument of postMessage method specifies which origin is allowed to receive the message. If you use the wildcard “\*” as an argument then any origin is allowed...
A **reusable Context** bundles the `createContext` call, its `Provider` (with local state/logic), and a custom hook to consume it into a single module. This hides the raw...
Since the listener listens for any message, an attacker can trick the application by sending a message from the attacker’s origin, which gives an impression that the rece...
**Redux Toolkit (RTK)** is the official, opinionated way to write Redux logic today. It's built on top of plain Redux and re-exports its APIs, but wraps them with utiliti...
You cannot avoid using postMessages completely(or 100%). Even though your application doesn’t use postMessage considering the risks, a lot of third party scripts use post...
**Client state** is data that lives entirely in the browser and is owned by the UI — it doesn't need to be synchronized with a backend. **Server state** is data that actu...
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.