본문 바로가기

⭐ JAVASCRIPT

javascript - 비교연산자 Boolean

728x90
반응형
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>비교 연산자 & Boolean</h1>
<h2>===</h2>
<h3>1===1</h3>
<script>
    document.write(1===1);
</script>

<h3>1===2</h3>
<script>
    document.write(1===2);
</script>

<h3>1&lt;2</h3>
<script>
    document.write(1<2);
</script>

<h3>1&lt;1</h3>
<script>
    document.write(1<1);
</script>
</body>
</html>
728x90
반응형