[DEV] JS 조건문카테고리 없음2021. 6. 26. 11:06
Table of Contents
조건문
- 조건의 결과(thuthy, falsy)에 따라 다른 코드를 실행하는 구문 ( if, else )
let isShow = true;
let checked = false;
if(isShow){
console.log('show!'); // show
}
if(checked){
console.log('checked!');
}
let isShow = true;
if (isShow){
console.log('show');
} else{
console.log('?');
}
@Potato_H :: 코딩하는 감자
기억보단 기록을
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!