
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.