What is the value of copy?
Given the code below:
const copy = JSON.stringify([ new String(‘ false ’), new Bollean( false ), undefined ]);
What is the value of copy?
A . — [ ”false” , { } ]–
B . — [ false, { } ]–
C . — [ ”false” , false, undefined ]–
D . — [ ”false” ,false, null ]–
Answer: D
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
C is the right answer