const mySet = new Set(); mySet.add(1); mySet.add(5); mySet.add("some text"); console.log(mySet.size); // 3