SKSagar Kumar Jhaindevsagarkumarjha.hashnode.dev·May 4 · 4 min readHow React Virtual DOM Works Under the HoodIntroduction Updating the browser DOM directly is expensive. Even small UI changes can trigger layout recalculations and repaint cycles, which slow down applications. React addresses this with the Vir00
SKSagar Kumar Jhaindevsagarkumarjha.hashnode.dev·Sep 10, 2025 · 4 min readAlgorithm ShowdownShiksha, Deepak, and Sagar solved a coding assignment. Each used a different approach, and then Shiksha asked: Shiksha: “We solved the same problem in three different ways, but which one is the best?” Deepak: “Which one will be faster?” Sagar: “Faste...00
SKSagar Kumar Jhaindevsagarkumarjha.hashnode.dev·Aug 6, 2025 · 2 min readArray.slice() and Array.splice()Array.slice(): The array.slice() method returns the selected elements starting at the given start argument and ends at the given optional end argument without including the last element. If you omit the second argument then it selects till the end. E...00
SKSagar Kumar Jhaindevsagarkumarjha.hashnode.dev·Aug 6, 2025 · 3 min readJSON and its Common Operations✅ What is JSON? JSON (JavaScript Object Notation) is a lightweight data-interchange format that is: Easy for humans to read and write Easy for machines to parse and generate It is commonly used for: Data storage Data exchange between client and...11A
SKSagar Kumar Jhaindevsagarkumarjha.hashnode.dev·Aug 5, 2025 · 2 min readCall, Apply and BindThe call(), apply(), and bind() methods in JavaScript are all used to control the this context within functions. They allow you to explicitly set the value of this when calling or preparing to call a function. However, they differ in syntax and behav...10