ClosuresA 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...Apr 14, 2023 · 3 min readjavascriptsetsandmaps.dev
Events 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...Apr 5, 2023 · 4 min readjavascriptsetsandmaps.dev
Sets 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...Mar 21, 2023 · 4 min readjavascriptsetsandmaps.dev
Maps 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...Mar 18, 2023 · 5 min readjavascriptsetsandmaps.dev