Kapil ThukralDefer 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
Kapil ThukralImplementing inheritance in constructor functionsChild.prototype.__proto__ will be Parent.prototypeMay 29, 2022May 29, 2022
Kapil ThukralSimulating 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
Kapil ThukralFunction CurryingImplementation of lodash library’s _.curry methodSep 15, 2021Sep 15, 2021
Kapil ThukralTaking notes from Javascript: The Good PartsObject.create, Object.setPrototypeOf, Object.getPrototypeOf, .__proto__Sep 12, 2021Sep 12, 2021
Kapil ThukralAmazon 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
Kapil ThukralMemoization in JavascriptObjective: Building a Higher Order function that returns the input function with memoization superpower.Aug 30, 2021Aug 30, 2021
Kapil ThukralFloyd 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