JS- 비교연산자와 boolean

Jeongwon·2022년 1월 13일
0

Java Script

목록 보기
7/14
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <h1>Comparison operators & Boolean</h1>
    <h2>===</h2>
    <h3>1===1</h3>
    <script>
    document.write(1===1); /*true*/
    </script>

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

    <h3>1&lt;2</h3>
    <script>
    document.write(1<2); /*true*/
    </script>
  </body>
</html>
profile
(❁´◡`❁)

0개의 댓글