ABAtul Bansalinatulbansalk.hashnode.dev路Oct 3, 2024 路 4 min readExploring Promise-Based Output QueriesPromises Output Questions 1. What is the output of this code? console.log("A"); setTimeout(() => { console.log("B"); }, 1000); console.log("C"); setTimeout(() => { console.log("D"); }, 0); console.log("E"); Click to see the output A C E D B...00
ABAtul Bansalinatulbansalk.hashnode.dev路Oct 3, 2024 路 1 min read馃殌 Transforming Mutable Objects to Immutable in JavaScript 馃殌In JavaScript, the ability to control the mutability of objects can be a game-changer. Let's explore three methods to make objects immutable, ensuring they remain unchangeable: const person = { firstName: "atul", lastName: "bansal"}; 馃敀 Object.se...00