There is a special <code>constructor</code> property located on the object instances <code>duck</code> and <code>beagle</code> that were created in the previous challenges:
<blockquote>let duck = new Bird();<br>let beagle = new Dog();<br><br>console.log(duck.constructor === Bird); //prints true<br>console.log(beagle.constructor === Dog); //prints true</blockquote>
Note that the <code>constructor</code> property is a reference to the constructor function that created the instance.
The advantage of the <code>constructor</code> property is that it's possible to check for this property to find out what kind of object it is. Here's an example of how this could be used:
<strong>Note</strong><br>Since the <code>constructor</code> property can be overwritten (which will be covered in the next two challenges) it’s generally better to use the <code>instanceof</code> method to check the type of an object.
</section>
## Instructions
<sectionid='instructions'>
Write a <code>joinDogFraternity</code> function that takes a <code>candidate</code> parameter and, using the <code>constructor</code> property, return <code>true</code> if the candidate is a <code>Dog</code>, otherwise return <code>false</code>.
</section>
## Tests
<sectionid='tests'>
```yml
- text: <code>joinDogFraternity</code> should be defined as a function.
testString: 'assert(joinDogFraternity(new Dog("")) === true, ''<code>joinDogFraternity</code> should return true if<code>candidate</code> is an instance of <code>Dog</code>.'');'
testString: 'assert(/\.constructor/.test(code) && !/instanceof/.test(code), ''<code>joinDogFraternity</code> should use the <code>constructor</code> property.'');'