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...3 min read·javascriptsetsandmaps.devApr 14, 2023
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...4 min read·javascriptsetsandmaps.devApr 5, 2023
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...4 min read·javascriptsetsandmaps.devMar 21, 2023
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...5 min read·javascriptsetsandmaps.devMar 18, 2023