JavaScript Tutorial
indexjavascript history javascript versions language specificationsarrays built in objects call apply bind classes constructors closures environment setup error handling debugging functions interview questions objects programming constructs prototypes reactangularjsset map strings numbers testing frameworks variables data typesset and map in javascript
Set and WeakSet
Set is unique collection of objects. Difference between Set and WeakSet is that in WeakSet, garbage collection may happen when object stored in set gets out of scope. Sets can store primitive as well as non primitive values. Weakset stores only objects. WeakSet does not have size property and methods like keys, values, clear,entries etc.Map and WeakMap
Set is collection of objects as key and values. Difference between Map and WeakMap is that in WeakMap, garbage collection may happen when object stored in map gets out of scope.
Complex problems, Simple Solutions