Classes Flashcards
1
Q
Syntax of isPrototype
A
objA.isPrototypeOf(objB);
true if objA is a parent of objB
2
Q
Class constructor participates in instanceof checks. True / False?
A
False.
Only Class.property properties participate in the test.
3
Q
toStringTag is used for ___
A
customizing behaviour of Object’s toString method to show strings like [object Array]