Q1131. What are the array mutation methods?
JavaScript array methods can be categorized into two groups: 1. Mutating methods: These are the methods that directly modify the original array. 1. Non-mutating methods: ...
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,236 available).
JavaScript array methods can be categorized into two groups: 1. Mutating methods: These are the methods that directly modify the original array. 1. Non-mutating methods: ...
Module scope is a feature introduced with ES6 (ES2015) modules that creates a scope specific to a module file, isolating variables and functions declared within it from t...
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...
`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 ...
`WeakRef` and `FinalizationRegistry` are advanced features (introduced in ES2021) for managing memory and object lifecycles in JavaScript. They provide low-level control ...
Logical assignment operators (introduced in ES2021) combine logical operations (`&&`, `||`, `??`) with assignment (`=`). They provide a concise way to assign values based...
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.