Answers for "typescript string to string | number | boolean"

0

boolean to string typescript

// cannot use toString(), use instead String()
var myBool: boolean = true;
var myString: string = String(myBool);
Posted by: Guest on February-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language