In this example, we have two boolean variable with value true and false and we are concatenating both the variable with " " tag which is why it will show output as
true
false
<!DOCTYPE html>
<html>
<head>
<title>Welcome to LearnKode - A code learning platform</title>
</head>
<body>
<p id="sample"></p>
<script>
var x = true;
var y = false;
document.getElementById("sample").innerHTML =x + "<br>" + y;
</script>
</body>
</html>