ES6 WeakSet – What is the difference between Set and WeakSet

ES6 WeakSet – What is the difference between Set and WeakSetThe video explains what is ES6 WeakSet and shows the main differences between Set and WeakSet.

Introduction to Sets:

Set intersection and difference:

Read more About Sets:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set

Read more about WeakSets:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet