Javascript Boolean Type Convert to String

Description

Javascript Boolean Type Convert to String


let myBool = true;
console.log(myBool); // "true"
console.log(myBool.toString()); // "true"
console.log(true); // "true"
console.log(true.toString()); // "true"



PreviousNext

Related