Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what is new set in javascript

A set is a collection of items which are unique i.e no element can be repeated. 
Set in ES6 are ordered: elements of the set can be iterated in the insertion 
order. Set can store any types of values whether primitive or objects. 
var set4 = new Set();
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #set #javascript
ADD COMMENT
Topic
Name
2+8 =