Classes Flashcards

1
Q

Syntax of isPrototype

A

objA.isPrototypeOf(objB);

true if objA is a parent of objB

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

Class constructor participates in instanceof checks. True / False?

A

False.

Only Class.property properties participate in the test.

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

toStringTag is used for ___

A

customizing behaviour of Object’s toString method to show strings like [object Array]

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