typeof Flashcards

1
Q

typeof 42;

A

number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

typeof “abc”;

A

string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

typeof true;

A

boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

typeof undefined;

A

undefined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

typeof null;

A

object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

typeof { “a”: 1 }

A

object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

typeof [1,2,3];

A

object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

typeof function hello(){};

A

function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly