Introduction
Javascript Boolean toString()
method returns a string representing the Boolean object.
bool.toString()
In the following code, flag.toString()
returns "true":
var flag = new Boolean(true);
var myVar = flag.toString();
PreviousNextRelated