Booleans() 예제
<button onclick="homzzang()">10 > 5 ?</button> <p id="hz"></p> <script> function homzzang() { document.getElementById("hz").innerHTML = Boolean(10 > 5); } </script> 결과보기
<button onclick="homzzang()">10 > 5 ?</button>
<p id="hz"></p>
<script>
function homzzang() {
document.getElementById("hz").innerHTML = Boolean(10 > 5);
}
</script>
결과보기