- Build constructor functions
- Build objects with properties from a constructor function
You work at a pet store, and it's your job to update the website with all the new animals that come into the store.
Create a constructor function for each of the following:
- Dog with
name
,breed
, andage
properties - Cat with
name
,breed
, andage
properties - Ferret with
name
,age
, andfoodRequirements
properties - Bird with
name
andbreed
properties - Fish with
name
,species
, andwaterConditions
properties
Make sure you run the tests to make sure your solutions work as expected.
View Creating Objects in JS Lab on Learn.co and start learning to code for free.