- 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 make sure your solutions work as expected.