js boolean to string code example
Example 1: javvascript convert boolean to string
let isValid = true;
console.log(isValid.toString());
console.log(isValid);
Example 2: get string value of boolean javascript
let stringTrue = true.toString();
let stringFalse = false.toString();
Example 3: boolean as string javascript
bool.toString()
Example 4: js string to boolean
var isTrueSet = (myValue == 'true');
var isTrueSet = (myValue === 'true');
Example 5: convert boolean to string javascript
booleanToString = b => { return b.toString(); }