boolean in string JS code example
Example 1: get string value of boolean javascript
// boolean.toString()
let stringTrue = true.toString();
let stringFalse = false.toString();
Example 2: boolean as string javascript
bool.toString()
// boolean.toString()
let stringTrue = true.toString();
let stringFalse = false.toString();
bool.toString()