Q2521. What are the possible side-effects in javascript?
A side effect is the modification of the state through the invocation of a function or expression. These side effects make our function impure by default. Below are some ...
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).
A side effect is the modification of the state through the invocation of a function or expression. These side effects make our function impure by default. Below are some ...
The "compose" and "pipe" are two techniques commonly used in functional programming to simplify complex operations and make code more readable. They are not native to Jav...
Module pattern is a designed pattern used to wrap a set of variables and functions together in a single scope returned as an object. JavaScript doesn't have access specif...
It is an approach where the result of one function is passed on to the next function, which is passed to another until the final function is executed for the final result...
Prior to ES2022, if you attempted to use an await outside of an async function resulted in a SyntaxError. ```javascript await Promise.resolve(console.log("Hello await"));...
The `this` keyword in JavaScript refers to **the object that is executing the current function**. Its value is determined by **how a function is called**, not where it is...
Closures are a powerful feature in programming languages like JavaScript. They allow functions to retain access to variables from their containing (enclosing) scope even ...
The execution context in JavaScript is a data structure that stores the information necessary for executing a piece of code. It includes the code itself, the values of th...
Memory leaks can lead to poor performance, slow loading times and even crashes in web applications. Some of the common causes of memory leaks are listed below, 1. The exe...
V8 engine uses the below optimization techniques. 1. **Inline expansion:** It is a compiler optimization by replacing the function calls with the corresponding function b...
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.