What will be the output of the following JavaScript code? [code] set.add("one"); set.add("two"); set.add("three"); set.clear();

KellyPoima

New member
What will be the output of the following JavaScript code?
Code:
set.add("one");  
set.add("two");  
set.add("three");    
set.clear();  
document.writeln(set.size);
A. one
B. 1
C. 2
D. 0
 

Tìm kiếm

Back
Top