Skip to main content

JavaScript Question 103

Question 103 of 0JavaScript

What's the value of output?

Login Required

Please login to select answers and solve this question. You can view the question without logging in.

Code:
const set = new Set();

set.add(1);
set.add('Lydia');
set.add({ name: 'Lydia' });

for (let item of set) {
  console.log(item + 2);
}

Select the correct option: