profile
열정있는 프론트엔드 개발자입니다

자바스크립트 boolean

boolean에는 true와 false 두가지가 있다.예를 들어 아래와 같은 if문이 있다고 하자.if (abc) { console.log(true);}abc가 0, -0, ' ', null, undefined이면 true가 출력이 안되며\-1, 'morning', '

2021년 3월 22일
·
0개의 댓글
·