Kapil ThukralDefer Non-Critical CSS and load them asynchronously<link rel=”preload” href=”styles.css” as=”style” onload=”this.onload=null;this.rel=’stylesheet’”>1 min read·Jun 15, 2022----
Kapil ThukralImplementing inheritance in constructor functionsChild.prototype.__proto__ will be Parent.prototype1 min read·May 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…1 min read·Sep 20, 2021----
Kapil ThukralFunction CurryingImplementation of lodash library’s _.curry method1 min read·Sep 15, 2021----
Kapil ThukralTaking notes from Javascript: The Good PartsObject.create, Object.setPrototypeOf, Object.getPrototypeOf, .__proto__1 min read·Sep 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)()…1 min read·Sep 10, 2021----
Kapil ThukralMemoization in JavascriptObjective: Building a Higher Order function that returns the input function with memoization superpower.1 min read·Aug 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.5 min read·Feb 19, 2021----