What is the difference between the Boolean object and the Boolean data type in JavaScript?

Posted by DarkLightA on Stack Overflow See other posts from Stack Overflow or by DarkLightA
Published on 2010-12-25T21:36:35Z Indexed on 2010/12/25 21:54 UTC
Read the original article Hit count: 252

Filed under:
|
|
|
|

The Boolean type has two literal values: true and false.

Do not confuse the primitive Boolean values true and false with the true and false values of the Boolean object. The Boolean object is a wrapper around the primitive Boolean data type. See Boolean Object for more information.

What does this mean? What's the difference between the Boolean object and the Boolean data type??

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about object