Q921. What are shadowing and illegal shadowing?
Both **shadowing** and **illegal shadowing** refer to how variable names can "hide" or override others within nested scopes. **Shadowing** occurs when a variable declared...
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 (963 available).
Both **shadowing** and **illegal shadowing** refer to how variable names can "hide" or override others within nested scopes. **Shadowing** occurs when a variable declared...
In JavaScript, you need to be mindful of removing event listeners to avoid memory leaks — especially in long-lived apps like single-page applications (SPAs) or when worki...
In JavaScript, `structuredClone()` is a built-in method used to create a **deep copy** of a value. It safely clones nested objects, arrays, Maps, Sets, Dates, TypedArrays...
The main difference is that `const` applies to **variables** (bindings), while `Object.freeze()` applies to **values** (objects). 1. **`const`**: Prevents the reassignmen...
`Promise.any()` is a Promise combinator method introduced in ES2021 that takes an iterable of promises and returns a single promise that fulfills as soon as any of the in...
`BigInt` is a built-in JavaScript object (introduced in ES2020) that provides a way to represent whole numbers larger than 2^53 - 1 (the largest number JavaScript can rel...
Private class fields (introduced in ES2022) are class properties that are only accessible within the class itself. They are prefixed with a hash symbol (`#`) and provide ...
The `at()` method (introduced in ES2022) allows you to access array elements using both positive and negative indices. It provides a simpler and more intuitive way to acc...
Top-level await is a feature (introduced in ES2022) that allows you to use the `await` keyword at the top level of ES modules, outside of async functions. This enables mo...
`WeakRef` and `FinalizationRegistry` are advanced features (introduced in ES2021) for managing memory and object lifecycles in JavaScript. They provide low-level control ...
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.