IT. Expert System.

Java Script

Boolean Object Overview


Boolean Object Overview

The Boolean object represents two values: "true" or "false". In general, it is used to convert a non-Boolean value to a Boolean value.

Creating a Boolean Object

To create a Boolean object, use the new keyword and assign the result to a variable.

The following example creates a Boolean named 'myBoolean':

var myBoolean = new Boolean();

Note: If the Boolean object has no initial value or if it is 0, -0, null, "", false, undefined, or NaN, the object is set to false. Otherwise it is true (even with the string "false")

Properties

Property Description
constructor Returns the function that created the object's prototype
prototype Allows addition of properties and methods to an object

Methods

Method Description
toString() Converts a Boolean value to a string, and returns the result
valueOf() Returns the primitive value of a Boolean object


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 510 / 158776813. Delta: 0.00270 с