USUtkarsh Saxenainjavascriptsetsandmaps.dev·Apr 14, 2023 · 3 min readClosuresA closure is a combination of functions bundled together (enclosed) with references to its surrounding state(the lexical environment). In other words, a closure gives access to the outer function scope from inside a function. In javascript, closure i...00
USUtkarsh Saxenainjavascriptsetsandmaps.dev·Apr 5, 2023 · 4 min readEvents in JavascriptEvents are things that happen system you are programming, which the system tells you about so your code can react to them. For example, if the user clicks a button on a webpage, you might want to do that action by displaying an information box. In th...00
USUtkarsh Saxenainjavascriptsetsandmaps.dev·Mar 21, 2023 · 4 min readSets in the javascriptThe Set object lets you store unique values of any type, whether primitive values or object references. Sets are provided by ES6. Set in ES6 are ordered: elements of the set can be iterated in the insertion order. Syntax : new Set[it] ; Parameter : i...00
USUtkarsh Saxenainjavascriptsetsandmaps.dev·Mar 18, 2023 · 5 min readMaps in JavascriptIntroduction Map is a collection of elements where each element stores a key-value pair and remembers the original order of keys. Map is an object that can hold objects and primitive values as either keys or values. Syntax : const map1 = new Map() m...00