Learning Fuze - rc0821 > JavaScript-constructors > Flashcards
What does the “new” operator do?
Creates a new Object: creates blank object, adds prototype, finds ‘this’ and returns ‘this
What property of JavaScript functions can store shared behavior for instances created with ‘new’?
prototype property
What does the instanceOf operator do?
Tests to see if the prototype property of a constructor appears anywhere in the prototype chain of an object.