A JavaScript Set is a group of distinct values. In a Set, each value can only appear once. Any value of any data type can be stored in a Set.
If a set has all elements of Set A and all elements of Set B, but no duplicate elements, it is said to be a union of two sets. If an element appears in both Set A and Set B, the union of the two sets will contain a single copy of the element.
Set allows you to store unique values of any type, including primitive values and object references.
Union creates a new Set that contains all of the elements from both sets.
Intersection creates a new Set with components from both sets.
Set A — Set B will return elements from Set A that aren't in Set B.
Learner's Ratings
4.9
Overall Rating
91%
9%
0%
0%
0%
Reviews
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
T
Takhmina
5
Thank you! I enjoyed the course; I learned so much.
Share a personalized message with your friends.