How 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 VirMay 4 · 4 min readdevsagarkumarjha.hashnode.dev
Algorithm 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...Sep 10, 2025 · 4 min readdevsagarkumarjha.hashnode.dev
Array.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...Aug 6, 2025 · 2 min readdevsagarkumarjha.hashnode.dev
JSON 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...11AAug 6, 2025 · 3 min readdevsagarkumarjha.hashnode.dev
Call, 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...1Aug 5, 2025 · 2 min readdevsagarkumarjha.hashnode.dev