250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- MySQL
- IntelliJ
- git
- PostgreSQL
- Core Java
- maven
- Eclipse
- Spring Boot
- ubuntu
- Source
- MSSQL
- JDBC
- myBatis
- Thymeleaf
- Python
- oracle
- error
- Docker
- STS
- JavaScript
- AJAX
- Open Source
- spring
- 오픈소스
- Tomcat
- Exception
- 문서
- SpringBoot
- jpa
- 설정
Archives
- Today
- Total
목록논리연산자 (1)
헤르메스 LIFE
자바스크립트 (JavaScript) 느낌표 두개 (Double Exclamation Marks) 연산자 (Operator), !!
정리하자면 느낌표 두개(!!) 연산자는 확실한 논리결과를 가지기 위해 사용합니다.예를 들어 정의되지 않은 변수 undefined 값을 가진 내용의 논리 연산 시에도 확실한 true / false를 가지도록 하는게 목적입니다. 테스트를 해보니 감이 확실히 오네요~ var a; console.log("a :: " + (a)); console.log("!a :: " + (!a)); console.log("!!a :: " + (!!a)); var b = true; console.log("b :: " + (b)); console.log("!b :: " + (!b)); console.log("!!b :: " + (!!b)); var c = null; console.log("c :: " + (c)); console...
JSP&JavaScript&HTML
2015. 1. 23. 16:53