Explain the 'WeakMap' and 'WeakSet' data structures in ES6.
Example:
let weakMap = new WeakMap(); let obj = {}; weakMap.set(obj, 'some value');
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.