"> Document "> Document ">
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
//if(조건식) 
//자바 true ,false
//자바 스크립트는 좀 더 많은 데이터를 사용해서 true/false를 식별한다.

let value =true;

if(value){
    console.log("이 값은 true입니다.")
}else{
    console.log("이 값은 false 입니다.")
}

//truthy ,falsy  값
//조건식의 참과 거짓을 다양한 형태의 자료형을 사용할수 있다 ->유연성
//truthy : 비어있지 않은 문자열, 0이 아닌 숫자,객체,ture
//falsy:""(빈문자열),0,-0,null,undefined,NaN(Not a Number)

let value1 ="";

if(value1){
    console.log("이 값은truthy입니다.")
}else{
    console.log("이 값은 falsy 입니다.")
}
    </script>
</body>
</html>