boolean.toString()
The boolean.toString() method returns "1" or "0" depending on the value of the boolean.
Example
var boolval = true;
Â
return boolval.toString();
// returns "1"
The boolean.toString() method returns "1" or "0" depending on the value of the boolean.
var boolval = true;
Â
return boolval.toString();
// returns "1"