A set is a collection of values in which each value can only appear once. Add, delete, has, clear, and size are the main methods. WeakSet:- You can store a group of unique keys using WeakSet objects. Keys in a "weakSet" cannot be primitive types. They can't be made by an array or another set, either.
WeakMap is a Map-like collection that only accepts objects as keys and eliminates them along with their associated value once they are no longer accessible through other means. WeakSet is a Set-like collection that only stores objects and eliminates them when they are no longer available through other means.
WeakSet s are collections of objects only. They cannot contain arbitrary values of any type, as Set s can. The WeakSet is weak, meaning references to objects in a WeakSet are held weakly. If no other references to an object stored in the WeakSet exist, those objects can be garbage collected.
A collection of objects is stored in a WeakSet in JavaScript. It has the same qualities of a set, such as not storing duplicates. The main distinction between a WeakSet and a set is that a WeakSet is a collection of objects rather than values of a specific type.
Learner's Ratings
4.9
Overall Rating
86%
14%
0%
0%
0%
Reviews
B
Bakare Oluwatobi
5
The Arithmetic operator explanations cover all this arithmetic operator sign and it is well explanatory with great examples
R
Raktim Ghosh
5
good course and very detailed explanation
S
Sachin
4
good course material
P
Pasalapudi Pujita Sri Naga Santhoshi
5
they has clearly explained and easily understand to all
M
Mohammad Suhail
5
Good trainer
P
Prabhat Yadav
5
Superb and amazing 😍🤩 enjoyable experience.
K
karthikeyan Karthik
5
Thankyou learnvern....
W
William Jimmy
4
This is by far the most comprehensive tutorial I ever come across. I was really excited to discover this amazing tutorial, but unfortunately couldn't continue due to keypad noise which I'm allergic to
V
Vijay Banjara
5
Amazing
V
VAISHNAVI RAJESH CHALKE
5
it helps me to clear my basic conceptual knowledge
Share a personalized message with your friends.