<!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>
'JS > JS 수업분' 카테고리의 다른 글
[JS] day09_whileEx (0) | 2023.04.18 |
---|---|
[JS] day09_반복문 (0) | 2023.04.18 |
[JS] day09_Math_random (0) | 2023.04.18 |
[JS] day11_Lotto과제 (0) | 2023.04.18 |
[JS] day11_classEx (입금, 출금, 송금) (0) | 2023.04.18 |