카테고리 없음2021. 6. 26. 11:06[DEV] JS 조건문
조건문 - 조건의 결과(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('?'); }