javascript-constructors Flashcards
1
Q
What does thenewoperator do?
A
The new operator lets developers create an instance of a user-defined object type or of one of the built-in object types that has a constructor function.
2
Q
What property of JavaScript functions can store shared behavior for instances created withnew?
A
prototype property
3
Q
What does theinstanceofoperator do?
A
The instanceof operator tests to see if the prototype property of a constructor appears anywhere in the prototype chain of an object. The return value is a boolean value.