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