T thanhthao New member Sep 19, 2021 #1 What will be the output of the following JavaScript code? Code: set.add("1"); set.add("2"); document.writeln(set.has("3")); A. 3 B. true C. false D. 2
What will be the output of the following JavaScript code? Code: set.add("1"); set.add("2"); document.writeln(set.has("3")); A. 3 B. true C. false D. 2
N Nguyễn Đức Thành New member Sep 19, 2021 #2 Answer: c Explanation: The Set has() method indicates whether the Set object contains the specified value. It returns true if the specified value is present, otherwise false. Upvote 0 Downvote
Answer: c Explanation: The Set has() method indicates whether the Set object contains the specified value. It returns true if the specified value is present, otherwise false.