Q2261. 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 (2,728 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...
Indeed, CPython's sets are implemented as something like dictionaries with dummy values (the keys being the members of the set), with some optimization(s) that exploit th...
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...
Method Resolution Order (MRO) it denotes the way a programming language resolves a method or attribute. Python supports classes inheriting from other classes. The class b...
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...
Declaration-wise: New-style classes inherit from object, or from another new-style class. ```python class NewStyleClass(object): pass ``` class AnotherNewStyleClass(NewSt...
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...
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.