Paradoxical Truth and JavaScript

Even the set is confused

JavaScript lacks a Boolean data type proper, but has a Boolean object class which can be used as a wrapper for storing and handling its two Boolean values. However, paradoxically, such a Boolean object will be automatically interpreted as “true” in Boolean contexts, even if its stored value is “false”.  Be careful of this.

Paradoxical Truth – NYTimes.com.

Leave a Reply

Your email address will not be published. Required fields are marked *