What will be the output of the following code?
<script> let ans = 1;
document.write( ans === '1' );
</script> |
(A) true
(B) false
(C) 0
(D) None of the above
Answer: (B)
Explanation: The strict equality operator compares both the value and the type of the operands.
Quiz of this Question
Article Tags :
Recommended Articles