typeof Flashcards
1
Q
typeof 42;
A
number
2
Q
typeof “abc”;
A
string
3
Q
typeof true;
A
boolean
4
Q
typeof undefined;
A
undefined
5
Q
typeof null;
A
object
6
Q
typeof { “a”: 1 }
A
object
7
Q
typeof [1,2,3];
A
object
8
Q
typeof function hello(){};
A
function