독학
♧9/30 - TCP school [자바스크립트] 불리언/타입오브연산자/null과 undefined
피자돈가스
2022. 9. 30. 13:26
자바스크립트
<불리언>
==
🦔type of🦔
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>JavaScript DataType</title>
</head>
<body>
<h1>typeof 연산자</h1>
<p id="result"></p>
<script>
document.getElementById("result").innerHTML = (typeof 10) + "<br>";
document.getElementById("result").innerHTML += (typeof "문자열") + "<br>";
document.getElementById("result").innerHTML += (typeof true) + "<br>";
document.getElementById("result").innerHTML += (typeof undefined) + "<br>";
document.getElementById("result").innerHTML += (typeof null);
</script>
</body>
</html>

<null과 undefined>
