Logical entity (Definition)

Boolean logical values are represented as an entity internally.

Availability:

ECMAScript edition - 2

Logical entities always evaluate as a Boolean result.

Logical entities are used to form conditions and control branching among other uses. They are often used to hold state information or control switches. A logical entity may be the result of a relational expression or the use of one or more logical operators. A logical entity may be the result of enquiring the property of an object that returns a Boolean value as a result. Logical entities can only contain a true or false value.

Cross-references:

ECMA 262 edition 2 - section - 4.3.14

ECMA 262 edition 3 - section - 4.3.14