valueOf (Boolean - JavaScript)

Gets a string representation of the Boolean object.

Defined in

Boolean (Standard - JavaScript)

Syntax

valueOf() : string
Return value Description
string The string value of the object.

Examples

This computed label creates a Boolean object and returns its string value.
var b = new Boolean(sessionScope.height >
	sessionScope.width);
b.valueOf()