What will be the output of the following JavaScript code? [code] var set = new Set(); set.add("one"); set.add("two"); for (let

What will be the output of the following JavaScript code?
Code:
var set = new Set();  
set.add("one");  
set.add("two");    
for (let elements of set) 
{  
    document.writeln(elements+" ");  
}
A. one
B. two
C. one two
D. undefined
 

Tìm kiếm

Back
Top