Javascript Concepts
-
Deep vs Shallow Copy in JavaScript: Unraveling the Importance and Differences
JavaScript, a versatile language known for its object-oriented paradigm, presents developers with various challenges when it comes to copying objects. The distinction between deep and shallow copy is crucial, impacting how changes to…
-
Implement your own map, reduce, filter or any new array method in Javascript | Prototypes
Javascript has many inbuilt methods for Javascript Array. In this blog, we will implement our own map, reduce, filter methods. We will also learn to write any custom method for Javascript Arrays. All…
-
How to Memoize any Function in Javascript | Memoization
Memoization is widely used programming technique which speeds up the execution of complex functions by caching the previously calculated results and returning the result directly from the cache when same input occurs. It…
-
How to Scale Website | CDN | Load Balancers | Walmart Interview
In order to Scale Website, you need to ensure that your website remains accessible even if website traffic grows exponentially i.e website/application should be able to handle more and more concurrent requests. I…
-
Javascript Find | JS Find | Javascript Array.Find()
Find an Item in JS Array? There are several ways to find an item in JS Array but using Javascript Array.Find() seems to be the most optimal way to achieve that. Let’s see…
-
Add(1)(2)(3)…(n)() in Javascript | Sum(1,2)(3,4) | Currying | Javascript Interview | Walmart
Write a JS function to implement Add(1)(2)(3)…(n)() or just add(1)(2)(3) that returns 6 or may be sum(1,2)(3,4) that returns 10? This is a quite famous Javascript interview question with several complex variations. Goal…
-
How to flatten a nested array in JS | Recursion | Javascript Interview | 1
How to flatten a nested array? I have been asked this question number of times during my Javascript Interviews. You aren’t allowed to use the inbuilt Flat() in Javascript Interviews. How to flatten…