Defer Non-Critical CSS and load them asynchronously<link rel=”preload” href=”styles.css” as=”style” onload=”this.onload=null;this.rel=’stylesheet’”>Jun 15, 2022Jun 15, 2022
Implementing inheritance in constructor functionsChild.prototype.__proto__ will be Parent.prototypeMay 29, 2022May 29, 2022
Simulating Tic Tac ToeTo Prove: In Tic Tac Toe, the probability of winning for the player who takes the first turn is more than the player who takes the second…Sep 20, 2021Sep 20, 2021
Taking notes from Javascript: The Good PartsObject.create, Object.setPrototypeOf, Object.getPrototypeOf, .__proto__Sep 12, 2021Sep 12, 2021
Amazon Frontend SDE interview questionProblem: define a sum function such that: sum(1,2,3)(4,10)() returns 20 and sum(1)(2)(3)() returns 6 and sum(1,2,3,4,5)(1,2,3)(1,10)()…Sep 10, 2021Sep 10, 2021
Memoization in JavascriptObjective: Building a Higher Order function that returns the input function with memoization superpower.Aug 30, 2021Aug 30, 2021
Floyd Warshall’s All Pair Shortest Path Algorithm from Dynamic Programming Perspective.Input: Given a weighted graph G with vertex set V and Edges E.Feb 19, 2021Feb 19, 2021