- Build constructor functions
- Build objects with properties from a constructor function
Scuber needs you to develop a fast way to create Scooter
s, Driver
s, and PickupLocation
s as new business keeps rolling in.
Create a constructor function for each of the following:
- Scooter with
year
,color
, andmodel
properties - Driver with
name
,age
, andexperience
properties - PickupLocation with
address
andcity
properties
Make sure you run the tests to ensure your solutions work as expected.
View Constructor Functions Lab on Learn.co and start learning to code for free.