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

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

What property of JavaScript functions can store shared behavior for instances created with new?

A

function prototype property

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

What does the instanceof operator do?

A

tests to see if the protoype appears anywhere in the protoype chain

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