Author Archives: Samir Singh

Memoization in Javascript

Memoization is a powerful technique used in computer science to optimize the performance of functions that are called repeatedly with the same arguments. In JavaScript, memoization is particularly useful for expensive computations that involve complex algorithms or data structures. At its core, memoization involves caching the result of a function based on its input arguments. Continue Reading »

HOISTING IN JAVASCRIPT (Variables & Function)

A Person with another programming background is definitely confused with hoisting in Javascript. So let’s deep dive into the hoisting in javascript The Javascript engine creates the global execution context when we execute a piece of Javascript code. Global Execution Context has two phases : (i) Creation Phase (ii) Execution Phase Definition: During the creation Continue Reading »