Is undefined false 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at Princeton University, Lives in Princeton, NJ
The truth is, this seemingly "bad" aspect of JavaScript is a source of power when you understand how it works. So undefined really means undefined. Not False, not True, not 0, not empty string. So when you compare undefined to anything, the result is always false, it is not equal to that.
2023-05-09 06:04:55
评论(499)
Helpful(122)
Helpful
Helpful(2)

Zoe Mitchell
QuesHub.com delivers expert answers and knowledge to you.
The truth is, this seemingly "bad" aspect of JavaScript is a source of power when you understand how it works. So undefined really means undefined. Not False, not True, not 0, not empty string. So when you compare undefined to anything, the result is always false, it is not equal to that.