Sử dụng String() hoặc .toString() để chuyển boolean thành chuỗi "true" hoặc "false".
Ví dụ
<!DOCTYPE html>
<html>
<body>
<p>Chuyển Boolean thành String</p>
<script>
var myBool = false;
document.write("<br>String: " + String(myBool)); // "false"
</script>
</body>
</html>