Kapil Thukral·Jan 15Iterables in JavascriptIterables are objects that implement the Symbol.iterator method, that makes any object iterable using “for of” loop.
Kapil Thukral·Jan 13Async mapLimitSimilar Question on GreatFrontEnd: https://www.greatfrontend.com/questions/javascript/map-async-limit
Kapil Thukral·Jun 15, 2022Defer Non-Critical CSS and load them asynchronously<link rel=”preload” href=”styles.css” as=”style” onload=”this.onload=null;this.rel=’stylesheet’”>
Kapil Thukral·May 29, 2022Implementing inheritance in constructor functionsChild.prototype.__proto__ will be Parent.prototype
Kapil Thukral·Sep 20, 2021Simulating 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…
Kapil Thukral·Sep 12, 2021Taking notes from Javascript: The Good PartsObject.create, Object.setPrototypeOf, Object.getPrototypeOf, .__proto__
Kapil Thukral·Sep 10, 2021Amazon 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)()…