Q. What does console.log(!0) return?

A
true
B
false
C
undefined
D
error
Solution:

The logical NOT operator (!) inverts 0 (false) to true.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!