초코레

typeof 본문

Frontend/JavaScript

typeof

초코레 2021. 1. 10. 15:27
1
2
3
4
5
6
7
8
9
10
11
console.log(typeof 42);
// expected output: "number"
 
console.log(typeof 'blubber');
// expected output: "string"
 
console.log(typeof true);
// expected output: "boolean"
 
console.log(typeof undeclaredVariable);
// expected output: "undefined"
cs