HTML.CSS.JS/JS

[JS] day09_조건문

congs 2023. 4. 18. 21:58
 
 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>조건문</title>
</head>    
<body>
    <script>
        console.log(null ?? 'null입니다'); // null입니다
        console.log("aa" ?? 'null입니다') // aa
        console.log("null" ?? 'null입니다') // null
    </script>
</body>
</html>