javascript-constructors Flashcards
1
Q
What does the new operator do?
A
creates a blank object, adds a property to one object , lets developers create an instance for a user defined object type
2
Q
What property of JavaScript functions can store shared behavior for instances created with new?
A
function prototype property
3
Q
What does the instanceof operator do?
A
tests to see if the protoype appears anywhere in the protoype chain