ECMA-262 Core: JavaScript Boolean Data Type

Navigation Aids -- This Page        Navigation Aids -- This Topic        Navigation Aids -- This Site

Introduction And Review

The ECMA-262 standard defines the term Boolean Type as: the type Boolean represents a logical entity and consists of exactly two unique values. One value is true and the other is called false.

The Boolean data type is one of five ECMAScript primitive types. The other four are: Number, String, Null and Undefined. All primitive types have a definite (fixed) size except for the String type.

The Boolean type is distinguished from other types using a dynamic or weak typing method. The method involves interrogating the value token. The boolean data type has two values. The interpreter looks for initializing tokens of true or false and when found, the variable gets a boolean data type.

Boolean Types


Rx4AJAX        About Us | Topic Index | Contact Us | Privacy Policy | 2008 This Site Built By PPThompson