영상
개념
<script>
/*
[타입]
typeof() 명령어를 통해 값이 어떤 자료형인지 확인할 수 있다.
[1] number : 숫자
[2] string : 문자
[3] boolean : 참과 거짓
# typeof() 명령어 : 자료형을 알려준다.
*/
console.log(typeof(10));
console.log(typeof(10.333));
console.log(typeof("안녕하세요."));
console.log(typeof(true));
console.log(typeof(false));
document.write(typeof(10) + "<br>");
document.write(typeof(10.333) + "<br>");
document.write(typeof("안녕하세요.") + "<br>");
document.write(typeof(true) + "<br>");
document.write(typeof(false) + "<br>");
</script>
Java
복사