JavaScript 부울 참조
자바스크립트 부울
JavaScript 부울 값은 true
또는
false
.
Boolean() 함수
함수를 사용하여 Boolean()
표현식이 참인지 확인할 수 있습니다.
예시
Boolean(10 > 9)
또는 더 쉽게:
예시
(10 > 9)
10 > 9
부울에 대한 튜토리얼은 JavaScript 부울 튜토리얼 을 읽어보세요 .
JavaScript 부울 메서드
Method | Description |
---|---|
toString() | Converts a boolean value to a string, and returns the result |
valueOf() | Returns the primitive value of a boolean |
JavaScript 부울 속성
Property | Description |
---|---|
constructor | Returns the function that created JavaScript's Boolean prototype |
prototype | Allows you to add properties and methods to the Boolean prototype |