Search

비교1_개념01_비교연산자

대분류
STEP02 비교/논리
문제 난이도
필수
소분류
비교1_개념

영상

개념

<script> /* [1] 비교 연산자 - 비교 연산자의 결과는 참(true) 또는 거짓(false)이다. - 아래 비교의 기준은 왼쪽을 기준으로할 때 (1) 크니? 10 > 3 (2) 작니? 10 < 3 (3) 같니? 10 == 3 (4) 다르니? 10 != 3 (5) 크거나 같니? 10 >= 3 (6) 작거나 같니? 10 <= 3 */ /* 모두 true 가 되도록 숫자를 변경해보시오. */ console.log(10 == 3); console.log(3 != 3); console.log(5 > 38); console.log(12 < 3); console.log(1 >= 11); console.log(32 <= 10); document.write(10 == 3); document.write(3 != 3); document.write(5 > 38); document.write(12 < 3); document.write(1 >= 11); document.write(32 <= 10); </script>
Java
복사