Skip to content
Quiz · Map, Set and JSON · lesson 4 of 9

Quiz — the size of a Set

What does the program print?

JavaScript
const s = new Set([1, "1", 1, 2]);
console.log(s.size);

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way